mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
7 lines
242 B
JavaScript
7 lines
242 B
JavaScript
const { test, expect } = require('@playwright/test');
|
|
|
|
test('failing test', async ({ page }) => {
|
|
await page.setContent(`<div>hello</div><span>world</span>`);
|
|
await expect(page.locator('span')).toHaveText('hello', { timeout: 1000 });
|
|
});
|