mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
parent
ba86dab83a
commit
d68f2f4990
@ -196,9 +196,6 @@ test('my test', async ({ page }) => {
|
|||||||
// Expect an attribute "to be strictly equal" to the value.
|
// Expect an attribute "to be strictly equal" to the value.
|
||||||
await expect(page.locator('text=Get Started').first()).toHaveAttribute('href', '/docs/intro');
|
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');
|
await page.click('text=Get Started');
|
||||||
// Expect some text to be visible on the page.
|
// Expect some text to be visible on the page.
|
||||||
await expect(page.locator('text=Introduction').first()).toBeVisible();
|
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.
|
// Expect an attribute "to be strictly equal" to the value.
|
||||||
await expect(page.locator('text=Get Started').first()).toHaveAttribute('href', '/docs/intro');
|
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');
|
await page.click('text=Get Started');
|
||||||
// Expect some text to be visible on the page.
|
// Expect some text to be visible on the page.
|
||||||
await expect(page.locator('text=Introduction').first()).toBeVisible();
|
await expect(page.locator('text=Introduction').first()).toBeVisible();
|
||||||
|
Loading…
Reference in New Issue
Block a user