mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* UI customizations: new features Fixes #2905 * colors for graphs * introduce env variable * colors for topbar, stats, selected state and tabs * fix build * fix validator * refactor link.primary.hover color token * refactor selected colors * update styles for switch and fix some color tokens * change color for selectable controls * icon color tokens refactoring * UI customizations: new features Fixes #2905 * test for common components * tweaks * migrate from color-mode-hex cookie to color-theme cookie * clean up * update screenshots * more screenshot updates * update default color of chart line * update envs for mega eth
26 lines
682 B
TypeScript
26 lines
682 B
TypeScript
import React from 'react';
|
|
|
|
import { test, expect } from 'playwright/lib';
|
|
import { TabsRoot } from 'toolkit/chakra/tabs';
|
|
|
|
import Textarea from './Textarea';
|
|
|
|
test('default +@dark-mode', async({ render, page }) => {
|
|
const component = await render(<TabsRoot defaultValue="textarea"><Textarea/></TabsRoot>);
|
|
const elements = component.locator('textarea');
|
|
|
|
await elements.nth(1).hover();
|
|
await page.mouse.wheel(0, 105);
|
|
|
|
await elements.nth(2).hover();
|
|
await page.mouse.wheel(0, 105);
|
|
|
|
await elements.nth(3).hover();
|
|
await page.mouse.wheel(0, 105);
|
|
|
|
await elements.nth(5).hover();
|
|
await page.mouse.wheel(0, 105);
|
|
|
|
await expect(component).toHaveScreenshot();
|
|
});
|