-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Trace-viewer-intro #16254
docs: Trace-viewer-intro #16254
Conversation
debs-obrien
commented
Aug 4, 2022
•
edited
edited
context = await browser.new_context() | ||
|
||
# Start tracing before creating / navigating a page. | ||
await context.tracing.start(screenshots=True, snapshots=True, sources=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should mention the pytest plugin way there instead of the library approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you will have to add what you mean here as no idea what the pytest plugin way is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://playwright.dev/python/docs/test-runners
pytest --trace on
Available options to record a trace: | ||
- `'on-first-retry'` - Record a trace only when retrying a test for the first time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention to make sure to have retries >= 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc needs a full rework which will be part of another pr