From b364efca38de0e36991fa4b3bf77ecb1210c5fa1 Mon Sep 17 00:00:00 2001 From: Ross Wollman Date: Mon, 14 Mar 2022 20:29:09 -0700 Subject: [PATCH] chore: update GitHub issue template (#12752) --- .github/ISSUE_TEMPLATE/bug.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index 3277cf41ba..6b212dcc69 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -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(` +
+ … +
+ `); + // Alternatively, if you are testing a public application, include the URL: + // await page.goto('https://example.com/') + + await page.locator(…); })(); ```