mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

* chore: improve installation tests - all helper scripts and files are moved to `fixture-scripts` subfolder. - `./run_all_tests.sh` now shows a counter to estimate progress - function `copy_test_scripts` is no longer needed; all fixture scripts are automatically copied to test folder Co-authored-by: Max Schmitt <max@schmitt.mx> Co-authored-by: Max Schmitt <max@schmitt.mx>
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 });
|
|
});
|