mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
19 lines
773 B
TypeScript
19 lines
773 B
TypeScript
import React from 'react';
|
|
|
|
import { ENVS_MAP } from 'playwright/fixtures/mockEnvs';
|
|
import { test, expect } from 'playwright/lib';
|
|
import { TabsRoot } from '@luxfi/ui/tabs';
|
|
|
|
import ProgressCircle from './ProgressCircle';
|
|
|
|
test('default +@dark-mode', async({ render, page }) => {
|
|
await render(<TabsRoot defaultValue="progress-circle"><ProgressCircle/></TabsRoot>);
|
|
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 300, height: 400 } });
|
|
});
|
|
|
|
test('color theme overrides +@dark-mode', async({ render, mockEnvs, page }) => {
|
|
await mockEnvs(ENVS_MAP.colorThemeOverrides);
|
|
await render(<TabsRoot defaultValue="progress-circle"><ProgressCircle/></TabsRoot>);
|
|
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 300, height: 400 } });
|
|
});
|