Skip to content

docs: fix incorrect defaults and broken samples in guides - #42519

Open
Ashraf Ali (ashrafiucse) wants to merge 2 commits into
microsoft:mainfrom
ashrafiucse:docs-factual-fixes
Open

docs: fix incorrect defaults and broken samples in guides#42519
Ashraf Ali (ashrafiucse) wants to merge 2 commits into
microsoft:mainfrom
ashrafiucse:docs-factual-fixes

Conversation

@ashrafiucse

Copy link
Copy Markdown
Contributor

Summary

  • Correct the default browser launch timeout to 180000 (3 minutes), matching DEFAULT_PLAYWRIGHT_LAUNCH_TIMEOUT in packages/isomorphic/time.ts
  • Fix misplaced parenthesis in the python dialog sample and zero-argument dialog handlers in the beforeunload samples
  • Set the service workers config sample to 'block' as the surrounding text instructs
  • Use Array.push instead of List.add in the java/csharp handles.md samples (the code runs in the page)
  • Worker index starts with 0, not 1 (workerHost.ts assigns lastWorkerIndex++ starting from 0)
  • Blob report default file name is report-<hash>-<shard_number>.zip, no project segment (reporters/blob.ts)
  • Show the real default testMatch glob instead of an outdated regex
  • Use a valid 13:15 time value in the csharp input sample

The default launch timeout is DEFAULT_PLAYWRIGHT_LAUNCH_TIMEOUT = 180000
(3 minutes) in packages/isomorphic/time.ts, not 30000 (30 seconds).
- dialogs: fix misplaced parenthesis in the python async sample and
  zero-argument dialog handlers in the beforeunload samples
- service workers: config sample now sets serviceWorkers to 'block'
  as described by the surrounding text
- handles: use Array.push instead of List.add in the java and csharp
  samples since the code runs in the page
- test-parallel: worker index starts with 0, not 1
- blob reporter: default file name has no project segment
- test-configuration: show the real default testMatch glob
- input: fix invalid time input value in the csharp sample
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.

1 participant