Skip to content

Commit

Permalink
Comment out userEvent stuff to diagnose
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Aug 28, 2024
1 parent 3e1ecd8 commit 5309b6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/WordCard/tests/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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
Expand All @@ -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();*/
});
});

0 comments on commit 5309b6a

Please sign in to comment.