import React from "react";
import renderer from "react-test-renderer";
import { Featured } from "../../Icon/Icons";
import MultiStepIndicator, { Step } from "../MultiStepIndicator";
const exampleSteps: Step[] = [
{
status: MultiStepIndicator.stepStatuses.FULFILLED,
titleText: "Title",
subtitleText: "Subtitle"
},
{
status: MultiStepIndicator.stepStatuses.ACTIVE,
titleText: "Active",
subtitleText: "Active Subtitle"
},
{
status: MultiStepIndicator.stepStatuses.PENDING,
titleText: "Pending",
subtitleText: "Pending Subtitle"
}
];
describe("MultiStepIndicator renders correctly", () => {
it("with empty props", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with steps", () => {
const tree = renderer.create();
expect(tree).toMatchSnapshot();
});
it("with className", () => {
const tree = renderer.create();
expect(tree).toMatchSnapshot();
});
it("with stepComponentClassName", () => {
const tree = renderer.create();
expect(tree).toMatchSnapshot();
});
it("with textPlacement vertical", () => {
const tree = renderer.create(
);
expect(tree).toMatchSnapshot();
});
it("with dividerComponentClassName", () => {
const tree = renderer.create();
expect(tree).toMatchSnapshot();
});
it("with isFulfilledStepDisplayNumber", () => {
const tree = renderer.create();
expect(tree).toMatchSnapshot();
});
it("with fulfilledStepIcon", () => {
const tree = renderer.create();
expect(tree).toMatchSnapshot();
});
it("with mode compact", () => {
const tree = renderer.create();
expect(tree).toMatchSnapshot();
});
it("with mode compact textPlacement vertical", () => {
const tree = renderer.create(
);
expect(tree).toMatchSnapshot();
});
});