Skip to content

Commit 0e0af1a

Browse files
committed
test: increase timeout for visibility checks in proposal discussion tests
1 parent 474e609 commit 0e0af1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.loggedin.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test.describe("Proposal created logged in state", () => {
6868
await proposalDiscussionDetailsPage.addComment(randComment);
6969

7070
await proposalDiscussionDetailsPage.replyComment(randReply);
71-
await expect(page.getByText(randReply)).toBeVisible();
71+
await expect(page.getByText(randReply)).toBeVisible({ timeout: 15_000 });
7272
});
7373
});
7474

@@ -122,12 +122,12 @@ test.describe("Proposal created with poll enabled (user auth)", () => {
122122
// vote must be changed
123123
await expect(
124124
page.getByTestId(`poll-${vote.toLowerCase()}-count`)
125-
).not.toHaveText(`${vote}: (0%)`);
125+
).toHaveText(`${vote}: (0%)`, { timeout: 15_000 });
126126
// opposite of random choice vote
127127
const oppositeVote = pollVotes[pollVotes.length - 1 - choice];
128128
await expect(
129129
page.getByTestId(`poll-${oppositeVote.toLowerCase()}-count`)
130-
).not.toHaveText(`${oppositeVote}: (100%)`);
130+
).toHaveText(`${oppositeVote}: (100%)`);
131131
});
132132
});
133133

0 commit comments

Comments
 (0)