From 94ee08662649e87729014f12d77c91bc5c68c2fe Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Wed, 28 Aug 2024 13:41:04 -0400 Subject: [PATCH] Add one user event to check for failure --- src/components/WordCard/tests/index.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/WordCard/tests/index.test.tsx b/src/components/WordCard/tests/index.test.tsx index 5271edc6eb..751460871f 100644 --- a/src/components/WordCard/tests/index.test.tsx +++ b/src/components/WordCard/tests/index.test.tsx @@ -52,7 +52,7 @@ beforeEach(async () => { describe("WordCard", () => { it("has summary and full views", async () => { - //const agent = userEvent.setup(); + const agent = userEvent.setup(); /** Check that the summary view has the intended elements */ const checkCondensed = (): void => { @@ -100,8 +100,8 @@ describe("WordCard", () => { };*/ checkCondensed(); - /*await agent.click(screen.getByLabelText(WordCardLabel.ButtonExpand)); - checkExpanded(); + await agent.click(screen.getByLabelText(WordCardLabel.ButtonExpand)); + /*checkExpanded(); await agent.click(screen.getByLabelText(WordCardLabel.ButtonCondense)); checkCondensed();*/ });