Files
explore/ui/shared/layout/Layout.pw.tsx
T
tom goriunovandGitHub 22f8016a8f Playwright tests refactoring, pt.5 (#1952)
* next part of test refactoring

* more refactoring

* more refactoring

* fixes and clean-up

* fixes

* build fixes

* more fixes
2024-05-25 15:41:32 +02:00

19 lines
627 B
TypeScript

import React from 'react';
import { indexingStatus } from 'mocks/stats/index';
import { test, expect } from 'playwright/lib';
import Layout from './Layout';
test('base view +@mobile', async({ render, mockEnvs, mockApiResponse }) => {
await mockEnvs([
[
'NEXT_PUBLIC_MAINTENANCE_ALERT_MESSAGE',
'We are currently lacking pictures of <i>ducks</i>. Please <a href="mailto:[email protected]">send</a> us one.',
],
]);
await mockApiResponse('homepage_indexing_status', indexingStatus);
const component = await render(<Layout>Page Content</Layout>);
await expect(component).toHaveScreenshot();
});