Skip to content

Commit

Permalink
e2e/acceptance/versions: Fix potential flaky test case (#10277)
Browse files Browse the repository at this point in the history
Wait before calling `evaluateAll()` to ensure all rows are available.
  • Loading branch information
eth3lbert authored Dec 29, 2024
1 parent bfcce94 commit 1ae8808
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e2e/acceptance/versions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ test.describe('Acceptance | crate versions page', { tag: '@acceptance' }, () =>
await page.goto('/crates/nanomsg/versions');
await expect(page).toHaveURL('/crates/nanomsg/versions');

await expect(page.locator('[data-test-version]')).toHaveCount(4);
let versions = await page.locator('[data-test-version]').evaluateAll(el => el.map(it => it.dataset.testVersion));
expect(versions).toEqual(['0.2.1', '0.3.0', '0.2.0', '0.1.0']);

Expand Down

0 comments on commit 1ae8808

Please sign in to comment.