/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { render } from "@testing-library/react"; import StepIndicator from "../StepIndicator"; test("renders a step indicator with multiple segments", async () => { const wrapper = render( , ); expect(wrapper.container).toMatchSnapshot(); }); test("renders a step indicator with one completed step", async () => { const wrapper = render( , ); expect(wrapper.container).toMatchSnapshot(); }); test("returns null when current is out of bounds", async () => { const wrapper = render( , ); expect(wrapper.container).toMatchSnapshot(); });