10 lines
303 B
TypeScript
Raw Normal View History

import { test, expect } from '@playwright/experimental-ct-react';
2022-03-11 15:46:11 -08: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('Hello Vite + React!');
});