2022-05-05 23:26:56 +02:00
|
|
|
import { test, expect } from '@playwright/test';
|
2022-03-12 00:46:11 +01:00
|
|
|
import App from './App';
|
|
|
|
|
|
|
|
|
|
test.use({ viewport: { width: 500, height: 500 } });
|
|
|
|
|
|
|
|
|
|
test('should work', async ({ mount }) => {
|
|
|
|
|
const component = await mount(<App></App>);
|
|
|
|
|
await expect(component).toContainText('Learn React');
|
|
|
|
|
});
|