/* * 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 DropdownMenu from "../DropdownMenu"; import { MenuItem } from "@reach/menu-button"; test("renders a default dropdown menu", async () => { const wrapper = render( {}}> This is a menu item , ); expect(wrapper.container).toMatchSnapshot(); }); test("renders an outlined menu button", async () => { const wrapper = render( {}}> This is a menu item , ); expect(wrapper.container).toMatchSnapshot(); }); test("renders a secondary menu button", async () => { const wrapper = render( {}}> This is a menu item , ); expect(wrapper.container).toMatchSnapshot(); }); test("renders an accent menu button", async () => { const wrapper = render( {}}> This is a menu item , ); expect(wrapper.container).toMatchSnapshot(); }); test("renders an unstyled menu button", async () => { const wrapper = render( {}}> This is a menu item , ); expect(wrapper.container).toMatchSnapshot(); });