Skip to content
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

fix(trace viewer): updating default traceStorageDir value #4962

Merged
merged 3 commits into from
Jan 11, 2021

Conversation

domderen
Copy link
Contributor

When npx playwright show-trace <tracePath> command is executed, without providing the resources optional parameter, the function expects the traceStorageDir default value to be the same directory in which the tracePath resides. This change updates it to the dirname(tracePath)/trace-resources if it exists. Such directory hierarchy is created by Tracer by default.

When `npx playwright show-trace <tracePath>` command is executed, without providing the `resources` optional parameter, the function expected the `traceStorageDir` default value to be the same directory as in which the tracePath resides. This change updates it to the `dirname(tracePath)/trace-resources` if it exists. Such a directory hirerachy is the default that is created when running the tracer in Playwright.
@dgozman
Copy link
Contributor

dgozman commented Jan 11, 2021

@domderen Thank you for the PR! We usually put a "namespace" or "component" in the change description. I will go ahead and rename this PR according to the guidelines.

@dgozman dgozman changed the title fix: Updating default traceStorageDir value. fix(trace viewer): updating default traceStorageDir value Jan 11, 2021
src/cli/traceViewer/traceViewer.ts Show resolved Hide resolved
@dgozman dgozman merged commit bf64fed into microsoft:master Jan 11, 2021
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