/* * 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 CardGroup from "../CardGroup"; const { Card, CardBody, CardFooter } = CardGroup; test("renders a card group with 1 card", async () => { const wrapper = render( Welcome to Performance Dashboard by AWS , ); expect(wrapper.container).toMatchSnapshot(); }); test("renders a card group with multiple cards", async () => { const wrapper = render( Welcome to Performance Dashboard by AWS Bienvenido a Performance Dashboard by AWS Bienvenue chez Performance Dashboard by AWS , ); expect(wrapper.container).toMatchSnapshot(); }); test("renders a card without footer", async () => { const wrapper = render( Welcome to Performance Dashboard , ); expect(wrapper.container).toMatchSnapshot(); });