docs(js): fix syntax errors at intro page examples (#8215)

This commit is contained in:
Kaan Gökdemir 2021-08-16 11:05:07 +02:00 committed by GitHub
parent 5aff9db3ca
commit 2bf01c63ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();