playwright/tests/components/ct-react-vite/src/App.spec.tsx
2022-03-25 23:09:02 -07:00

10 lines
308 B
TypeScript

import { test, expect } from '@playwright/experimental-ct-react/test';
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!');
});