mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
19 lines
659 B
TypeScript
19 lines
659 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 Switch from './Switch';
|
|
|
|
test('default +@dark-mode', async({ render }) => {
|
|
const component = await render(<TabsRoot defaultValue="switch"><Switch/></TabsRoot>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|
|
|
|
test('color theme overrides +@dark-mode', async({ render, mockEnvs }) => {
|
|
await mockEnvs(ENVS_MAP.colorThemeOverrides);
|
|
const component = await render(<TabsRoot defaultValue="switch"><Switch/></TabsRoot>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|