Skip to content

Commit 1f02046

Browse files
authored
chore: sync with upstream GitHub issue templates (#793)
1 parent f9abeae commit 1f02046

File tree

6 files changed

+106
-41
lines changed

6 files changed

+106
-41
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Bug Report
2+
description: Something doesn't work like it should? Tell us!
3+
title: "[Bug]: "
4+
labels: []
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: input
11+
id: version
12+
attributes:
13+
label: Playwright version
14+
description: Which version of of Playwright are you using?
15+
placeholder: ex. 1.12.0
16+
validations:
17+
required: true
18+
- type: dropdown
19+
id: operating-system
20+
attributes:
21+
label: Operating system
22+
multiple: true
23+
description: What operating system are you running Playwright on?
24+
options:
25+
- Windows
26+
- MacOS
27+
- Linux
28+
- type: dropdown
29+
id: browsers
30+
attributes:
31+
label: What browsers are you seeing the problem on?
32+
multiple: true
33+
options:
34+
- Chromium
35+
- Firefox
36+
- WebKit
37+
- type: textarea
38+
id: other-information
39+
attributes:
40+
label: Other information
41+
description: ex. Python version, Linux distribution etc.
42+
- type: textarea
43+
id: what-happened
44+
attributes:
45+
label: What happened? / Describe the bug
46+
description: Also tell us, what did you expect to happen?
47+
placeholder: Tell us what you see!
48+
validations:
49+
required: true
50+
- type: textarea
51+
id: reproducible
52+
attributes:
53+
label: Code snippet to reproduce your bug
54+
description: Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. This will be automatically formatted into code, so no need for backticks.
55+
render: shell
56+
placeholder: |
57+
from playwright.sync_api import sync_playwright
58+
59+
with sync_playwright() as p:
60+
browser = p.chromium.launch()
61+
page = browser.new_page()
62+
# ...
63+
browser.close()
64+
- type: textarea
65+
id: logs
66+
attributes:
67+
label: Relevant log output
68+
description: Please copy and paste any relevant log output like [Playwright debug logs](https://playwright.dev/docs/debug#verbose-api-logs). This will be automatically formatted into code, so no need for backticks.
69+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
contact_links:
2+
- name: Join our Slack community
3+
url: https://aka.ms/playwright-slack
4+
about: Ask questions and discuss with other community members
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Feature request
2+
description: Request new features to be added
3+
title: "[Feature]: "
4+
labels: []
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this feature request!
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: Feature request
14+
description: |
15+
Let us know what functionality you'd like to see in Playwright and what is your use case.
16+
Do you think others might benefit from this as well?
17+
validations:
18+
required: true

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: I have a question
2+
description: Feel free to ask us your questions!
3+
title: "[Question]: "
4+
labels: []
5+
body:
6+
- type: textarea
7+
id: question
8+
attributes:
9+
label: Your question
10+
validations:
11+
required: true

playwright/__main__.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,17 @@
1313
# limitations under the License.
1414

1515
import os
16-
import platform
1716
import subprocess
1817
import sys
1918

2019
from playwright._impl._driver import compute_driver_executable
21-
from playwright._repo_version import version
2220

2321

2422
def main() -> None:
25-
if "envinfo" in sys.argv:
26-
print(f"- Playwright Version: {version}")
27-
print(f"- Operating System: {platform.platform()}")
28-
print(f"- Python Version: {sys.version}")
29-
else:
30-
driver_executable = compute_driver_executable()
31-
env = os.environ.copy()
32-
env["PW_CLI_TARGET_LANG"] = "python"
33-
subprocess.run([str(driver_executable), *sys.argv[1:]], env=env)
23+
driver_executable = compute_driver_executable()
24+
env = os.environ.copy()
25+
env["PW_CLI_TARGET_LANG"] = "python"
26+
subprocess.run([str(driver_executable), *sys.argv[1:]], env=env)
3427

3528

3629
if __name__ == "__main__":

0 commit comments

Comments
 (0)