From 5309b6a02cc8ce84f8c0ba4db3a08aeb5481bb10 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Wed, 28 Aug 2024 11:53:59 -0400 Subject: [PATCH] Comment out userEvent stuff to diagnose --- src/components/WordCard/tests/index.test.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/WordCard/tests/index.test.tsx b/src/components/WordCard/tests/index.test.tsx index 72a551b7f7..5271edc6eb 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 => { @@ -76,7 +76,7 @@ describe("WordCard", () => { }; /** Check that the full view has the intended elements */ - const checkExpanded = (): void => { + /*const checkExpanded = (): void => { // Has playable audio and no pronunciations summary expect(screen.queryAllByLabelText(playButtonLabel)).toHaveLength( newAudio.length @@ -97,12 +97,12 @@ describe("WordCard", () => { expect( screen.queryByLabelText(WordCardLabel.ButtonCondense) ).toBeTruthy(); - }; + };*/ checkCondensed(); - await agent.click(screen.getByLabelText(WordCardLabel.ButtonExpand)); + /*await agent.click(screen.getByLabelText(WordCardLabel.ButtonExpand)); checkExpanded(); await agent.click(screen.getByLabelText(WordCardLabel.ButtonCondense)); - checkCondensed(); + checkCondensed();*/ }); });