Skip to content

Commit

Permalink
test: fix flakyness on recordAction
Browse files Browse the repository at this point in the history
  • Loading branch information
ruifigueira committed Sep 30, 2024
1 parent 87397a0 commit 782265d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/crx/crxRecorderTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export const test = crxTest.extend<{

recordAction: async ({ recorderPage }, run) => {
await run(async (action) => {
// just to make sure code is up-to-date
await recorderPage.waitForTimeout(100);
const count = await recorderPage.locator('.CodeMirror-line').count();
const result = await action();
await expect(recorderPage.locator('.CodeMirror-line')).not.toHaveCount(count);
Expand Down

0 comments on commit 782265d

Please sign in to comment.