2022-05-10 23:01:06 +02:00
|
|
|
import { test, expect } from '@playwright/experimental-ct-react'
|
2022-05-10 20:45:47 +02:00
|
|
|
import { DelayedData } from './DelayedData';
|
|
|
|
|
|
|
|
|
|
test('toHaveText works on delayed data', async ({ mount }) => {
|
|
|
|
|
const component = await mount(<DelayedData data='complete' />);
|
|
|
|
|
await expect(component).toHaveText('complete');
|
|
|
|
|
});
|