Skip to content

Commit

Permalink
test: Make test more robust (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
tihuan authored Jul 22, 2024
1 parent 2125709 commit c977612
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .infra/rdev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stack:
services:
explorer:
image:
tag: sha-174a2b45
tag: sha-c765d258
replicaCount: 1
env:
# env vars common to all deployment stages
Expand Down
11 changes: 10 additions & 1 deletion client/__tests__/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,16 @@ for (const testDataset of testDatasets) {

await page.getByTestId("download-graph-button").click();

expect(downloads.length).toBe(2);
/**
* (thuang): Sometimes in GHA there's only 1 download, so we need to retry
* until we get 2 downloads
*/
await tryUntil(
() => {
expect(downloads.length).toBe(2);
},
{ page }
);

const afterMinimizeDownloads: Download[] = [];

Expand Down

0 comments on commit c977612

Please sign in to comment.