-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(Drawer): replace chromatic visual test with playwright
- Loading branch information
1 parent
9de4999
commit 160c53d
Showing
14 changed files
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
|
||
import Button from "../Button"; | ||
|
||
import Drawer from "."; | ||
|
||
export default function DrawerVisualStory() { | ||
return ( | ||
<Drawer title="Drawer" onClose={() => {}} shown actions={<Button>Button</Button>}> | ||
Stuffs | ||
</Drawer> | ||
); | ||
} |
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,12 @@ | ||
import * as React from "react"; | ||
import { test, expect } from "@playwright/experimental-ct-react"; | ||
|
||
import DrawerStory from "./Drawer.ct-story"; | ||
|
||
test.describe("visual Drawer", () => { | ||
test("Drawer", async ({ mount }) => { | ||
const component = await mount(<DrawerStory />); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); |
Binary file added
BIN
+10.4 KB
...ts/src/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Desktop-darwin.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
+10.2 KB
...nts/src/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Desktop-linux.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
+11.1 KB
.../Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Large-Desktop-darwin.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
+10.9 KB
...c/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Large-Desktop-linux.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
+17.4 KB
...c/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Large-Mobile-darwin.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
+8.84 KB
...rc/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Large-Mobile-linux.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
+13.3 KB
.../Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Medium-Mobile-darwin.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
+7.28 KB
...c/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Medium-Mobile-linux.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
+11.1 KB
...c/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Small-Mobile-darwin.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
+6.64 KB
...rc/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Small-Mobile-linux.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
+24.9 KB
...nts/src/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Tablet-darwin.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
+10.4 KB
...ents/src/Drawer/Drawer.ct.tsx-snapshots/visual-Drawer-Drawer-1-Tablet-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.