docs: add guide for taking website screenshots with Playwright#17619
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
|
||
| # Take Website Screenshots | ||
|
|
||
| Take a screenshot of https://example.com and post the result in a GitHub issue. |
There was a problem hiding this comment.
@copilot is localhost, not example.com
Remove allowed domains onnplaywritj.
There was a problem hiding this comment.
Fixed in c8f1f9a. All examples now target http://localhost:4321 and playwright: is declared without allowed_domains (localhost is allowed by default). The Network Configuration section still explains how to add external domains when needed.
…omains Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Compared the guide against
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
docs/src/content/docs/guides/playwright-screenshots.mdguidedocs/astro.config.mjslocalhost(notexample.com)allowed_domainsfrom Playwright config (localhost is default)daily-multi-device-docs-tester,test-copilot-playwright-screenshots):network:block from localhost examples (not needed)/tmp/gh-aw/convention"npm *","mkdir *"etc.kill *,sleep *,curl *to bash allowlistOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.