Skip to content

Commit

Permalink
test(Stepper): add visual test for active
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Dec 11, 2023
1 parent d642ce8 commit 0360ab1
Show file tree
Hide file tree
Showing 49 changed files with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions packages/orbit-components/src/Stepper/Stepper.ct.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ test.describe("visual Stepper", () => {
await expect(component).toHaveScreenshot();
});

test("Stepper disabled with active", async ({ mount }) => {
const component = await mount(
<StepperStory titleIncrement="increment" titleDecrement="decrement" disabled active />,
);

await expect(component).toHaveScreenshot();
});

test("Stepper with active", async ({ mount }) => {
const component = await mount(
<StepperStory titleIncrement="increment" titleDecrement="decrement" active />,
);

await expect(component).toHaveScreenshot();
});

test("Stepper disabled increment", async ({ mount }) => {
const component = await mount(
<StepperStory
Expand All @@ -34,6 +50,21 @@ test.describe("visual Stepper", () => {
await expect(component).toHaveScreenshot();
});

test("Stepper disabled increment with active", async ({ mount }) => {
const component = await mount(
<StepperStory
titleIncrement="increment"
titleDecrement="decrement"
maxValue={10}
defaultValue={10}
minValue={0}
active
/>,
);

await expect(component).toHaveScreenshot();
});

test("Stepper disabled decrement", async ({ mount }) => {
const component = await mount(
<StepperStory
Expand All @@ -47,4 +78,19 @@ test.describe("visual Stepper", () => {

await expect(component).toHaveScreenshot();
});

test("Stepper disabled decrement with active", async ({ mount }) => {
const component = await mount(
<StepperStory
titleIncrement="increment"
titleDecrement="decrement"
maxValue={10}
defaultValue={0}
minValue={0}
active
/>,
);

await expect(component).toHaveScreenshot();
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0360ab1

Please sign in to comment.