mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: update bug template with thrown error (#10479)
This commit is contained in:
parent
57e9bd8339
commit
25cb642623
20
.github/ISSUE_TEMPLATE/bug.yml
vendored
20
.github/ISSUE_TEMPLATE/bug.yml
vendored
@ -32,8 +32,11 @@ body:
|
|||||||
(async () => {
|
(async () => {
|
||||||
const browser = await puppeteer.launch();
|
const browser = await puppeteer.launch();
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
await page.goto('https://news.google.com/news/');
|
try {
|
||||||
await page.screenshot({path: 'news.png', fullPage: true});
|
// Do something.
|
||||||
|
} catch {
|
||||||
|
throw new Error('Something went wrong');
|
||||||
|
}
|
||||||
await browser.close();
|
await browser.close();
|
||||||
})();
|
})();
|
||||||
validations:
|
validations:
|
||||||
@ -57,7 +60,7 @@ body:
|
|||||||
description: >
|
description: >
|
||||||
How does the bug behave? Does it happen very rarely (flaky)? If there is
|
How does the bug behave? Does it happen very rarely (flaky)? If there is
|
||||||
a PDF problem, make sure the script writes the PDF somewhere in the
|
a PDF problem, make sure the script writes the PDF somewhere in the
|
||||||
current working directory. *Note: PDF implies no error.*
|
current working directory.
|
||||||
options:
|
options:
|
||||||
- label: Flaky
|
- label: Flaky
|
||||||
- label: PDF
|
- label: PDF
|
||||||
@ -95,14 +98,15 @@ body:
|
|||||||
label: Puppeteer configuration
|
label: Puppeteer configuration
|
||||||
description: >
|
description: >
|
||||||
Copy and paste your [configuration
|
Copy and paste your [configuration
|
||||||
file](https://pptr.dev/guides/configuration/) (if applicable). *No need
|
file](https://pptr.dev/guides/configuration/) (if applicable).
|
||||||
for backticks — this automatically gets formatted into code.*
|
|
||||||
|
*No need for backticks — this automatically gets formatted into code.*
|
||||||
render: TypeScript
|
render: TypeScript
|
||||||
- id: puppeteer-version
|
- id: puppeteer-version
|
||||||
type: input
|
type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Puppeteer version
|
label: Puppeteer version
|
||||||
description: |
|
description: >
|
||||||
What version of Puppeteer are you running? *This must be a valid semver
|
What version of Puppeteer are you running? *This must be a valid semver
|
||||||
tag.*
|
tag.*
|
||||||
validations:
|
validations:
|
||||||
@ -111,7 +115,7 @@ body:
|
|||||||
type: input
|
type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Node version
|
label: Node version
|
||||||
description: |
|
description: >
|
||||||
What supported version of Node.js are you running? *This must be a valid
|
What supported version of Node.js are you running? *This must be a valid
|
||||||
semver tag.*
|
semver tag.*
|
||||||
validations:
|
validations:
|
||||||
@ -131,7 +135,7 @@ body:
|
|||||||
type: input
|
type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Package manager version
|
label: Package manager version
|
||||||
description: |
|
description: >
|
||||||
What version of the package manager are you running? *This must be a
|
What version of the package manager are you running? *This must be a
|
||||||
valid semver tag.*
|
valid semver tag.*
|
||||||
validations:
|
validations:
|
||||||
|
Loading…
Reference in New Issue
Block a user