mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
8 lines
295 B
TypeScript
8 lines
295 B
TypeScript
import { test, expect } from '@playwright/experimental-ct-react'
|
|
import { DelayedData } from './DelayedData';
|
|
|
|
test('toHaveText works on delayed data', async ({ mount }) => {
|
|
const component = await mount(<DelayedData data='complete' />);
|
|
await expect(component).toHaveText('complete');
|
|
});
|