mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
9bce817a92
* 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
220 B
JavaScript
7 lines
220 B
JavaScript
const { test, expect } = require('@playwright/test');
|
|
|
|
test('sample test', async ({ page }) => {
|
|
await page.setContent(`<div>hello</div><span>world</span>`);
|
|
expect(await page.textContent('span')).toBe('world');
|
|
});
|