Skip to content

Commit

Permalink
chore: update bug template with thrown error (#10479)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Jun 29, 2023
1 parent 57e9bd8 commit 25cb642
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/ISSUE_TEMPLATE/bug.yml
Expand Up @@ -32,8 +32,11 @@ body:
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://news.google.com/news/');
await page.screenshot({path: 'news.png', fullPage: true});
try {
// Do something.
} catch {
throw new Error('Something went wrong');
}
await browser.close();
})();
validations:
Expand All @@ -57,7 +60,7 @@ body:
description: >
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
current working directory. *Note: PDF implies no error.*
current working directory.
options:
- label: Flaky
- label: PDF
Expand Down Expand Up @@ -95,14 +98,15 @@ body:
label: Puppeteer configuration
description: >
Copy and paste your [configuration
file](https://pptr.dev/guides/configuration/) (if applicable). *No need
for backticks — this automatically gets formatted into code.*
file](https://pptr.dev/guides/configuration/) (if applicable).
*No need for backticks — this automatically gets formatted into code.*
render: TypeScript
- id: puppeteer-version
type: input
attributes:
label: Puppeteer version
description: |
description: >
What version of Puppeteer are you running? *This must be a valid semver
tag.*
validations:
Expand All @@ -111,7 +115,7 @@ body:
type: input
attributes:
label: Node version
description: |
description: >
What supported version of Node.js are you running? *This must be a valid
semver tag.*
validations:
Expand All @@ -131,7 +135,7 @@ body:
type: input
attributes:
label: Package manager version
description: |
description: >
What version of the package manager are you running? *This must be a
valid semver tag.*
validations:
Expand Down

0 comments on commit 25cb642

Please sign in to comment.