docs: global beforeEach/beforeAll hooks #39956
Annotations
1 error and 3 warnings
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-python@v4, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
docs/src/test-fixtures-js.md#L1
Error: This line has a length of 106. Maximum allowed is 100.
5 | await page.goto(baseURL);
6 | await use();
> 7 | }, { scope: 'test', auto: true } ], // starts automatically before every test, we pass "auto" for that.
| ^
8 |
9 | sharedBeforeEach: [async ({ page }, use) => {
10 | await use();
Unable to lint:
import { test as base } from '@playwright/test';
export const test = base.extend({
sharedAfterEach: [async ({ page, baseURL }, use) => {
await page.goto(baseURL);
await use();
}, { scope: 'test', auto: true } ], // starts automatically before every test, we pass "auto" for that.
sharedBeforeEach: [async ({ page }, use) => {
await use();
console.log('Test final URL:', page.url());
}, { scope: 'test', auto: true } ], // starts automatically after every test, we pass "auto" for that.
});
|
docs/src/test-fixtures-js.md#L1
Error: This line has a length of 107. Maximum allowed is 100.
5 | console.log('Before All', browser.version());
6 | await use();
> 7 | }, { scope: 'worker', auto: true } ], // starts automatically for every worker, we pass "auto" for that.
| ^
8 |
9 | sharedAfterAll: [async ({ browser }, use) => {
10 | console.log('After All', browser.version());
Unable to lint:
import { test as base } from '@playwright/test';
export const test = base.extend({
sharedBeforeAll: [async ({ browser }, use) => {
console.log('Before All', browser.version());
await use();
}, { scope: 'worker', auto: true } ], // starts automatically for every worker, we pass "auto" for that.
sharedAfterAll: [async ({ browser }, use) => {
console.log('After All', browser.version());
await use();
}, { scope: 'worker', auto: true } ], // starts automatically for every worker, we pass "auto" for that.
});
|
This job failed
Loading