Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webapp/src/components/VotingBoard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default function VotingBoard({ boardId }) {
{done && !closed && (
<div role="status" className="voting-board__error">
<Banner mode="success" withIcon>
Thanks, your votes are in.{' '}
Thank you! Your votes are in.{' '}
<Button inline onClick={() => handleDone(false)} disabled={pending}>Keep voting</Button>
</Banner>
</div>
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/VotingBoard.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ describe('VotingBoard', () => {

fireEvent.click(screen.getByText("I'm done voting"));

expect(await screen.findByText(/Thanks, your votes are in/)).toBeInTheDocument();
expect(await screen.findByText(/Thank you! Your votes are in/)).toBeInTheDocument();
expect(voteButton).toBeDisabled();
expect(screen.queryByText("I'm done voting")).not.toBeInTheDocument();

fireEvent.click(screen.getByText('Keep voting'));

await waitFor(() => expect(screen.queryByText(/Thanks, your votes are in/)).not.toBeInTheDocument());
await waitFor(() => expect(screen.queryByText(/Thank you! Your votes are in/)).not.toBeInTheDocument());
expect(voteButton).not.toBeDisabled();
expect(screen.getByText("I'm done voting")).toBeInTheDocument();
});
Expand Down
Loading