Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/web/tests/integration/check-actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,10 @@ describe('a tap on a locator that never appears', () => {
const error = await perform({ kind: 'locator', locator: page.locator('#missing') }, { kind: 'tap' });
expect(Date.now() - started).toBeLessThan(3500);
expect(error).toMatchObject({ code: 'NOT_ACTIONABLE', retryable: false });
expect(error?.message).toMatch(/^tap did not become actionable in time: .*Timeout 2000ms exceeded/);
expect(error?.message).toMatch(/^tap did not become actionable in time: .*Timeout \d+ms exceeded/);
const remainingMs = Number(error?.message.match(/Timeout (\d+)ms exceeded/)?.[1]);
expect(remainingMs).toBeGreaterThan(1500);
expect(remainingMs).toBeLessThanOrEqual(2000);
expect(error?.message).toContain("waiting for locator('#missing')");
});
});
Expand Down
Loading