From 3f4a791cb79ad37c0dba11e14dff9c1cc580ecf3 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Mon, 16 Aug 2021 16:58:48 -0700 Subject: [PATCH] chore: fix the first test example --- docs/src/intro-js.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/intro-js.md b/docs/src/intro-js.md index 8913e0fd4f..4c91499da0 100644 --- a/docs/src/intro-js.md +++ b/docs/src/intro-js.md @@ -41,7 +41,7 @@ const { test, expect } = require('@playwright/test'); test('basic test', async ({ page }) => { await page.goto('https://playwright.dev/'); - const title = page.locator('.navbar__title'); + const title = page.locator('.navbar__inner .navbar__title'); await expect(title).toHaveText('Playwright'); }); ``` @@ -51,7 +51,7 @@ import { test, expect } from '@playwright/test'; test('basic test', async ({ page }) => { await page.goto('https://playwright.dev/'); - const title = page.locator('.navbar__title'); + const title = page.locator('.navbar__inner .navbar__title'); await expect(title).toHaveText('Playwright'); }); ```