From d68f2f49905133b7a73ddf7818d8ab68cfc0098f Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 26 Jan 2022 14:31:48 -0700 Subject: [PATCH] docs: fix intro example (#11658) Fixes #11652 --- docs/src/intro-js.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/src/intro-js.md b/docs/src/intro-js.md index 38b928a413..ec0b7f4096 100644 --- a/docs/src/intro-js.md +++ b/docs/src/intro-js.md @@ -196,9 +196,6 @@ test('my test', async ({ page }) => { // Expect an attribute "to be strictly equal" to the value. await expect(page.locator('text=Get Started').first()).toHaveAttribute('href', '/docs/intro'); - // Expect an element "to be visible". - await expect(page.locator('text=Learn more').first()).toBeVisible(); - await page.click('text=Get Started'); // Expect some text to be visible on the page. await expect(page.locator('text=Introduction').first()).toBeVisible(); @@ -218,9 +215,6 @@ test('my test', async ({ page }) => { // Expect an attribute "to be strictly equal" to the value. await expect(page.locator('text=Get Started').first()).toHaveAttribute('href', '/docs/intro'); - // Expect an element "to be visible". - await expect(page.locator('text=Learn more').first()).toBeVisible(); - await page.click('text=Get Started'); // Expect some text to be visible on the page. await expect(page.locator('text=Introduction').first()).toBeVisible();