playwright/installation-tests/failing.spec.js
Dmitry Gozman c711fb35ad
fix(expect): do not rely on displayName (#9523)
Support for displayName was removed in Node 16.
Switching to Function.name instead.

Relevant V8 change: https://chromium-review.googlesource.com/c/v8/v8/+/2692189
2021-10-14 19:23:45 -07:00

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