Skip to content

Commit

Permalink
Add one user event to check for failure
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Aug 28, 2024
1 parent 5309b6a commit 94ee086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Down Expand Up @@ -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();*/
});
Expand Down

0 comments on commit 94ee086

Please sign in to comment.