mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
20 lines
539 B
TypeScript
20 lines
539 B
TypeScript
import React from 'react';
|
|
|
|
import { ENVS_MAP } from 'playwright/fixtures/mockEnvs';
|
|
import { test, expect, devices } from 'playwright/lib';
|
|
|
|
import HeaderMobile from './HeaderMobile';
|
|
|
|
test.use({ viewport: devices['iPhone 13 Pro'].viewport });
|
|
|
|
test.beforeEach(async({ mockEnvs }) => {
|
|
await mockEnvs([
|
|
...ENVS_MAP.rewardsService,
|
|
]);
|
|
});
|
|
|
|
test('default view +@dark-mode', async({ render, page }) => {
|
|
await render(<HeaderMobile/>);
|
|
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 1500, height: 150 } });
|
|
});
|