mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* next part of test refactoring * more refactoring * more refactoring * fixes and clean-up * fixes * build fixes * more fixes
18 lines
546 B
TypeScript
18 lines
546 B
TypeScript
import React from 'react';
|
|
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import Utilization from './Utilization';
|
|
|
|
test.use({ viewport: { width: 100, height: 50 } });
|
|
|
|
test('green color scheme +@dark-mode', async({ render }) => {
|
|
const component = await render(<Utilization value={ 0.423 }/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|
|
|
|
test('gray color scheme +@dark-mode', async({ render }) => {
|
|
const component = await render(<Utilization value={ 0.423 } colorScheme="gray"/>);
|
|
await expect(component).toHaveScreenshot();
|
|
});
|