-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Reproduce
const pageCover = page.getByText('some text');
// Lint fails
// eslint-disable-next-line playwright/missing-playwright-await <= doesn't workaround the bug
const expectation = expect(
pageCover,
"message"
).toBeVisible();
await page.clock.runFor(60_000);
// awaited here
await expectation;
Error trace
ESLint: 8.57.1
RangeError: Maximum call stack size exceeded
Occurred while linting /e2e/tests/SignalR/index.test.ts:121
Rule: "playwright/missing-playwright-await"
at SourceCode.getScope (/node_modules/eslint/lib/source-code/source-code.js:770:13)
at checkValidity (/node_modules/eslint-plugin-playwright/dist/index.cjs:736:42)
at checkValidity (/node_modules/eslint-plugin-playwright/dist/index.cjs:741:15)
Versions
eslint-plugin-playwright@2.2.2
@playwright/test@1.51.0
=> patched slightly but unrelated to this error
Metadata
Metadata
Assignees
Labels
No labels