Skip to content

fix(tracing): resolve artifact paths in the current directory - #3367

Closed
microsoft-playwright-automation[bot] wants to merge 1 commit into
mainfrom
triage/3361/45158936604-1
Closed

microsoft-playwright-automation[bot] wants to merge 1 commit into
mainfrom
triage/3361/45158936604-1

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor
  • Resolve HAR paths when recording starts and trace paths before export, using the Python process's current directory rather than the driver's startup directory.
  • Extend the existing Python source-collection test with a directory change, a relative HAR string and a relative trace Path. Keep its trace-viewer assertions.

The regression fails without the fix and passes with it on Chromium, Firefox and WebKit. Neighboring sync and async tracing/HAR files passed on all three browsers: 949 passed, 14 existing skips. Full lint and mypy playwright passed.

Fixes #3361

Triaged on macOS by the Playwright bot - agent run

@dgozman

Copy link
Copy Markdown
Collaborator

Closing in favor of microsoft/playwright#44319.

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.

[Bug]: tracing.stop(path=...) and record_har_path ignore os.chdir() for relative paths

1 participant