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(snapshots): match resources by method #24145

Merged
merged 1 commit into from Jul 11, 2023

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Jul 11, 2023

Fixes #24144.

Previously, we only matched by url, which confuses GET and HEAD requests where the latter is usually zero-sized.

Also make sure that resources are sorted by their monotonicTime, since that's not always the case in the trace file, where they are sorted by the "response body retrieved" time.

Previously, we only matched by url, which confuses GET and HEAD
requests where the latter is usually zero-sized.

Also make sure that resources are sorted by their monotonicTime,
since that's not always the case in the trace file, where they
are sorted by the "response body retrieved" time.
@dgozman dgozman force-pushed the trace-viewer-match-by-method branch from 70143fc to 31b5709 Compare July 11, 2023 01:14
@github-actions
Copy link
Contributor

"tests 1" report.

@github-actions
Copy link
Contributor

"tests 1" report.

@dgozman dgozman merged commit aeba083 into microsoft:main Jul 11, 2023
25 of 27 checks passed
dgozman added a commit to dgozman/playwright that referenced this pull request Jul 11, 2023
Fixes microsoft#24144.

Previously, we only matched by url, which confuses GET and HEAD requests
where the latter is usually zero-sized.

Also make sure that resources are sorted by their monotonicTime, since
that's not always the case in the trace file, where they are sorted by
the "response body retrieved" time.
aslushnikov pushed a commit that referenced this pull request Jul 11, 2023
Fixes #24144.

Previously, we only matched by url, which confuses GET and HEAD requests
where the latter is usually zero-sized.

Also make sure that resources are sorted by their monotonicTime, since
that's not always the case in the trace file, where they are sorted by
the "response body retrieved" time.
Germandrummer92 pushed a commit to OctoMind-dev/playwright that referenced this pull request Oct 27, 2023
Fixes microsoft#24144.

Previously, we only matched by url, which confuses GET and HEAD requests
where the latter is usually zero-sized.

Also make sure that resources are sorted by their monotonicTime, since
that's not always the case in the trace file, where they are sorted by
the "response body retrieved" time.
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.

[REGRESSION]: Snapshot styles in trace-viwer aren't loaded
2 participants