Skip to content

Add Playwright failure screenshot instructions#38307

Draft
juan-fernandez wants to merge 3 commits into
masterfrom
juan-fernandez/playwright-failure-screenshots
Draft

Add Playwright failure screenshot instructions#38307
juan-fernandez wants to merge 3 commits into
masterfrom
juan-fernandez/playwright-failure-screenshots

Conversation

@juan-fernandez

@juan-fernandez juan-fernandez commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Adds Playwright guidance for uploading test failure screenshots to Test Optimization. Documents the supported screenshot values and clarifies that when Playwright uses 'on', Test Optimization uploads only screenshots from failed tests.

https://docs-staging.datadoghq.com/juan-fernandez/playwright-failure-screenshots/tests/setup/javascript/?tab=playwright#upload-test-failure-screenshots

Merge readiness

  • Ready for merge

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.
  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.

AI assistance

AI-assisted drafting, source verification, and validation.

Additional notes

Validation: Vale reported no findings on changed lines, git diff --check passed, and Hugo rendered the updated page locally.

@github-actions

Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants