Skip to content

Commit

Permalink
changed test query selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Resaki1 committed Jan 15, 2025
1 parent 292e27a commit 4152253
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Votes/__tests__/Votes.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ describe("Votes", () => {
})
);

expect(screen.getByLabelText(i18n.t("Votes.AddVote"))).toBeInTheDocument();
expect(screen.getByLabelText(i18n.t("Votes.RemoveVote"))).toBeInTheDocument();
expect(screen.getByLabelText(i18n.t("Votes.RemoveVote"))).not.toBeDisabled();
expect(screen.queryByLabelText(i18n.t("Votes.AddVote"))).toBeInTheDocument();
expect(screen.queryByLabelText(i18n.t("Votes.RemoveVote"))).toBeInTheDocument();
expect(screen.queryByLabelText(i18n.t("Votes.RemoveVote"))).not.toBeDisabled();
expect(screen.queryByLabelText(i18n.t("Votes.VotesOnNote", {count: 1}))).not.toBeInTheDocument();
});
});

0 comments on commit 4152253

Please sign in to comment.