Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(js): fix syntax errors at intro page examples (#8215)
Kaan Gökdemir2bf01c63ba1c
diff --git a/docs/src/intro-js.md b/docs/src/intro-js.mdindex aa23327eb9..8913e0fd4f 100644--- a/docs/src/intro-js.md+++ b/docs/src/intro-js.md@@ -103,7 +103,7 @@ test('my test', async ({ page }) => {await expect(page).toHaveTitle('Playwright');// Expect an attribute "to be strictly equal" to the value.- await expect(page.locator('text=Get Started').toHaveAttribute('href', '/docs/intro');+ await expect(page.locator('text=Get Started')).toHaveAttribute('href', '/docs/intro');// Expect an element "to be visible".await expect(page.locator('text=Learn more')).toBeVisible();@@ -128,7 +128,7 @@ test('my test', async ({ page }) => {await expect(page).toHaveTitle('Playwright');// Expect an attribute "to be strictly equal" to the value.- await expect(page.locator('text=Get Started').toHaveAttribute('href', '/docs/intro');+ await expect(page.locator('text=Get Started')).toHaveAttribute('href', '/docs/intro');// Expect an element "to be visible".await expect(page.locator('text=Learn more')).toBeVisible();