docs: add guide for print dialogs #38486
infra.yml
on: pull_request
docs & lint
3m 19s
Lint snippets
48s
Annotations
1 error and 2 warnings
Lint snippets
Process completed with exit code 1.
|
Lint snippets
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, actions/setup-dotnet@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
js linting error:
docs/src/dialogs.md#L1
Error: This line has a length of 101. Maximum allowed is 100.
> 1 | await page.evaluate('(() => { window.waitForPrintDialog = new Promise(f => window.print = f); })()');
| ^
2 |
3 | await page.goto('<url>');
4 | await page.getByText('Print it!').click();
Unable to lint:
await page.evaluate('(() => { window.waitForPrintDialog = new Promise(f => window.print = f); })()');
await page.goto('<url>');
await page.getByText('Print it!').click();
await page.waitForFunction('window.waitForPrintDialog');
|