Skip to content
Merged
Changes from 2 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
6 changes: 5 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,11 @@ 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/);
const remainingMs = Number(
error?.message.match(/^tap did not become actionable in time: .*Timeout (\d+)ms exceeded/)?.[1],
);
expect(remainingMs).toBeGreaterThan(0);
expect(remainingMs).toBeLessThanOrEqual(2000);
expect(error?.message).toContain("waiting for locator('#missing')");
});
});
Expand Down
Loading