diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index 5a3f382da2..8537690e30 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -7,34 +7,55 @@ assignees: '' --- -**Context:** -- Playwright Version: [what Playwright version do you use?] -- Operating System: [e.g. Windows, Linux or Mac] -- .NET version: [e.g. .NET 6] -- Browser: [e.g. All, Chromium, Firefox, WebKit] -- Extra: [any specific details about your environment] + -**Code Snippet** + + + -Help us help you! Put down a short code snippet that illustrates your bug and -that we can run and debug locally. For example: +### System info +- Playwright Version: [v1.XX] +- Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.] +- Browser: [All, Chromium, Firefox, WebKit] +- Other info: + +### Source code + +- [ ] I provided exact source code that allows reproducing the issue locally. + + + + + + +**Link to the GitHub repository with the repro** + +[https://github.com/your_profile/playwright_issue_title] + +or + + + +**Test file (self-contained)** ```cs using System.Threading.Tasks; using Microsoft.Playwright; -class Program -{ - public static async Task Main() - { - using var playwright = await Playwright.CreateAsync(); - await using var browser = await playwright.Chromium.LaunchAsync(); - var page = await browser.NewPageAsync(); - // ... - } -} +using var playwright = await Playwright.CreateAsync(); +await using var browser = await playwright.Chromium.LaunchAsync(); +await using var context = await browser.NewContextAsync(); +var page = await context.NewPageAsync(); ``` -**Describe the bug** +**Steps** +- [Run the test] +- [...] + +**Expected** + +[Describe expected behavior] + +**Actual** -Add any other details about the problem here. +[Describe actual behavior] diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 918439bd84..de71858775 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ contact_links: - - name: Join our Slack community - url: https://aka.ms/playwright-slack + - name: Join our Discord Server + url: https://aka.ms/playwright/discord about: Ask questions and discuss with other community members \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml deleted file mode 100644 index c805b9812f..0000000000 --- a/.github/ISSUE_TEMPLATE/question.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: I have a question -description: Feel free to ask us your questions! -title: "[Question]: " -labels: [] -body: - - type: textarea - id: question - attributes: - label: Your question - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/regression.md b/.github/ISSUE_TEMPLATE/regression.md new file mode 100644 index 0000000000..d52db666b3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/regression.md @@ -0,0 +1,33 @@ +--- +name: Report regression +about: Functionality that used to work and does not any more +title: "[REGRESSION]: " +labels: '' +assignees: '' + +--- + +**Context:** +- GOOD Playwright Version: [what Playwright version worked nicely?] +- BAD Playwright Version: [what Playwright version doesn't work any more?] +- Operating System: [e.g. Windows, Linux or Mac] +- Extra: [any specific details about your environment] + +**Code Snippet** + +Help us help you! Put down a short code snippet that illustrates your bug and +that we can run and debug locally. For example: + +```cs +using System.Threading.Tasks; +using Microsoft.Playwright; + +using var playwright = await Playwright.CreateAsync(); +await using var browser = await playwright.Chromium.LaunchAsync(); +await using var context = await browser.NewContextAsync(); +var page = await context.NewPageAsync(); +``` + +**Describe the bug** + +Add any other details about the problem here.