playwright/installation-tests/sample.spec.js

7 lines
220 B
JavaScript
Raw Normal View History

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');
});