Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

242 B
Raw Blame
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 });
});