forked from blockscout/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
189 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...__/ui/shared/Utilization.pw.tsx-snapshots/Utilization-dark-1-chromium-linux.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...s__/ui/shared/Utilization.pw.tsx-snapshots/Utilization-dark-1-firefox-linux.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ts__/ui/shared/Utilization.pw.tsx-snapshots/Utilization-dark-1-webkit-linux.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
..._/ui/shared/Utilization.pw.tsx-snapshots/Utilization-light-1-chromium-linux.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...__/ui/shared/Utilization.pw.tsx-snapshots/Utilization-light-1-firefox-linux.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...s__/ui/shared/Utilization.pw.tsx-snapshots/Utilization-light-1-webkit-linux.png
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
yarn install | ||
yarn test-ct | ||
yarn test:pw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { test, expect } from '@playwright/experimental-ct-react'; | ||
import React from 'react'; | ||
|
||
import RenderWithChakra from 'playwright/RenderWithChakra'; | ||
|
||
import Utilization from './Utilization'; | ||
|
||
test.use({ viewport: { width: 100, height: 50 } }); | ||
|
||
test('green color scheme in light mode', async({ mount }) => { | ||
const component = await mount( | ||
<RenderWithChakra> | ||
<Utilization value={ 0.423 }/> | ||
</RenderWithChakra>, | ||
); | ||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('green color scheme in dark mode', async({ mount }) => { | ||
const component = await mount( | ||
<RenderWithChakra colorMode="dark"> | ||
<Utilization value={ 0.423 }/> | ||
</RenderWithChakra>, | ||
); | ||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('gray color scheme in light mode', async({ mount }) => { | ||
const component = await mount( | ||
<RenderWithChakra> | ||
<Utilization value={ 0.423 } colorScheme="gray"/> | ||
</RenderWithChakra>, | ||
); | ||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('gray color scheme in dark mode', async({ mount }) => { | ||
const component = await mount( | ||
<RenderWithChakra colorMode="dark"> | ||
<Utilization value={ 0.423 } colorScheme="gray"/> | ||
</RenderWithChakra>, | ||
); | ||
await expect(component).toHaveScreenshot(); | ||
}); |
File renamed without changes.
Binary file added
BIN
+1.47 KB
...ization/__screenshots__/Utilization.pw.tsx_gray-color-scheme-in-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.48 KB
...zation/__screenshots__/Utilization.pw.tsx_gray-color-scheme-in-light-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.43 KB
...zation/__screenshots__/Utilization.pw.tsx_green-color-scheme-in-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.5 KB
...ation/__screenshots__/Utilization.pw.tsx_green-color-scheme-in-light-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.