-
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.
- Loading branch information
1 parent
9411b3e
commit 0fd1642
Showing
50 changed files
with
59 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,9 @@ | ||
import React from "react"; | ||
|
||
import type { Props } from "./types"; | ||
|
||
import Stepper from "."; | ||
|
||
export default function StepperStory(props: Props) { | ||
return <Stepper {...props} />; | ||
} |
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,50 @@ | ||
import * as React from "react"; | ||
import { test, expect } from "@playwright/experimental-ct-react"; | ||
|
||
import StepperStory from "./Stepper.ct-story"; | ||
|
||
test.describe("visual Stepper", () => { | ||
test("default Stepper", async ({ mount }) => { | ||
const component = await mount( | ||
<StepperStory titleIncrement="increment" titleDecrement="decrement" />, | ||
); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test("Stepper disabled", async ({ mount }) => { | ||
const component = await mount( | ||
<StepperStory titleIncrement="increment" titleDecrement="decrement" disabled />, | ||
); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test("Stepper disabled increment", async ({ mount }) => { | ||
const component = await mount( | ||
<StepperStory | ||
titleIncrement="increment" | ||
titleDecrement="decrement" | ||
maxValue={10} | ||
defaultValue={10} | ||
minValue={0} | ||
/>, | ||
); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test("Stepper disabled decrement", async ({ mount }) => { | ||
const component = await mount( | ||
<StepperStory | ||
titleIncrement="increment" | ||
titleDecrement="decrement" | ||
maxValue={10} | ||
defaultValue={0} | ||
minValue={0} | ||
/>, | ||
); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); | ||
}); |
Binary file added
BIN
+865 Bytes
...r/Stepper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+963 Bytes
...er/Stepper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+865 Bytes
...per.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+963 Bytes
...pper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+1.2 KB
...pper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+919 Bytes
...epper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+1.2 KB
...per.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+919 Bytes
...pper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+1.2 KB
...pper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+919 Bytes
...epper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+1.2 KB
...er/Stepper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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
+919 Bytes
...per/Stepper.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-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.
Binary file added
BIN
+1016 Bytes
...ct.tsx-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.16 KB
....ct.tsx-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1016 Bytes
...-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.16 KB
...x-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.42 KB
...x-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.15 KB
...sx-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.42 KB
...-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.15 KB
...x-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.42 KB
...x-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.15 KB
...sx-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.42 KB
....ct.tsx-snapshots/visual-Stepper-Stepper-disabled-decrement-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
+1.15 KB
...r.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-decrement-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.
Binary file added
BIN
+1.11 KB
...ct.tsx-snapshots/visual-Stepper-Stepper-disabled-increment-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
+1.27 KB
....ct.tsx-snapshots/visual-Stepper-Stepper-disabled-increment-1-Desktop-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.11 KB
...-snapshots/visual-Stepper-Stepper-disabled-increment-1-Large-Desktop-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.27 KB
...x-snapshots/visual-Stepper-Stepper-disabled-increment-1-Large-Desktop-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.48 KB
...x-snapshots/visual-Stepper-Stepper-disabled-increment-1-Large-Mobile-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.25 KB
...sx-snapshots/visual-Stepper-Stepper-disabled-increment-1-Large-Mobile-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.48 KB
...-snapshots/visual-Stepper-Stepper-disabled-increment-1-Medium-Mobile-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.25 KB
...x-snapshots/visual-Stepper-Stepper-disabled-increment-1-Medium-Mobile-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.48 KB
...x-snapshots/visual-Stepper-Stepper-disabled-increment-1-Small-Mobile-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.25 KB
...sx-snapshots/visual-Stepper-Stepper-disabled-increment-1-Small-Mobile-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.48 KB
....ct.tsx-snapshots/visual-Stepper-Stepper-disabled-increment-1-Tablet-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.25 KB
...r.ct.tsx-snapshots/visual-Stepper-Stepper-disabled-increment-1-Tablet-linux.png
Oops, something went wrong.
Binary file added
BIN
+942 Bytes
...er/Stepper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Desktop-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.05 KB
...per/Stepper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Desktop-linux.png
Oops, something went wrong.
Binary file added
BIN
+942 Bytes
...pper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Large-Desktop-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1.05 KB
...epper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Large-Desktop-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.29 KB
...epper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Large-Mobile-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1016 Bytes
...tepper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Large-Mobile-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.29 KB
...pper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Medium-Mobile-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1016 Bytes
...epper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Medium-Mobile-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.29 KB
...epper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Small-Mobile-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1016 Bytes
...tepper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Small-Mobile-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.29 KB
...per/Stepper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Tablet-darwin.png
Oops, something went wrong.
Binary file added
BIN
+1016 Bytes
...pper/Stepper.ct.tsx-snapshots/visual-Stepper-default-Stepper-1-Tablet-linux.png
Oops, something went wrong.