chore: update GitHub issue template (#12752)
This commit is contained in:
parent
08c29b305b
commit
b364efca38
15
.github/ISSUE_TEMPLATE/bug.md
vendored
15
.github/ISSUE_TEMPLATE/bug.md
vendored
|
|
@ -27,7 +27,20 @@ const {chromium, webkit, firefox} = require('playwright');
|
|||
|
||||
(async () => {
|
||||
const browser = await chromium.launch();
|
||||
// ...
|
||||
const context = await browser.newContext();
|
||||
const page = await context.newPage();
|
||||
|
||||
// Please include a snippet of HTML that shows an example of the content
|
||||
// you are testing.
|
||||
await page.setContent(`
|
||||
<div>
|
||||
…
|
||||
</div>
|
||||
`);
|
||||
// Alternatively, if you are testing a public application, include the URL:
|
||||
// await page.goto('https://example.com/')
|
||||
|
||||
await page.locator(…);
|
||||
})();
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue