Skip to content

Commit

Permalink
Minor test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zonia3000 committed Jan 8, 2025
1 parent 2bb733e commit 133b1a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/v2/images.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ async function searchImages(page, expectedCount) {
// wait spinner disappearing
await expect(applyBtn.getByRole('status')).toHaveCount(0);
await expect(page.getByRole('row')).toHaveCount(expectedCount + 2);
// Await slim-select change events are propagated before clicking the Reset button
await new Promise((r) => setTimeout(r, 500));
const resetBtn = page.getByRole('button', { name: 'Reset', exact: true });
await resetBtn.click();
await expect(resetBtn).not.toBeEnabled();
Expand Down

0 comments on commit 133b1a4

Please sign in to comment.