Repository navigation
test(argos): reproduce the duplicate render of pages served at .html URLs (AI-assisted) #12813
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f401472
test(website): dogfood a blog post with a non-ASCII html slug (AI-ass…
slorber d1d9c84
test(argos): screenshot pages served at .html URLs by static hosts (A…
slorber 8a5a051
test(website): use a dogfood doc instead of a blog post for the café …
slorber a6941d2
Merge branch 'dup-render/dogfood-encoded-html-slug' into dup-render/a…
slorber b1242fa
test(argos): screenshot the café dogfood doc instead of the blog post…
slorber d397459
test(argos): move the café regression test out of the repro (AI-assis…
slorber 053c351
test(argos): capture the duplicate render in aria snapshots too (AI-a…
slorber bb26cf3
Merge branch 'main' into dup-render/argos-static-host-urls (AI-assisted)
slorber bece1ce
fix(core): docusaurus serve adds a trailing slash to pages with a dot…
slorber 018b611
fix(core): docusaurus serve does all the redirects, keeping the query…
slorber 57f93ed
fix(core): docusaurus serve keeps the baseUrl with encoded slashes (A…
slorber e84dd30
test(core): cover the isPage() guards of docusaurus serve (AI-assisted)
slorber eb538a9
Merge the isPage() tests (AI-assisted)
slorber 7083089
Merge the isPage() tests (AI-assisted)
slorber 849a8e7
Merge main into the all redirects fix (AI-assisted)
slorber 69ea7b6
Merge main into the encoded slashes fix (AI-assisted)
slorber 3aa95fa
Merge branch 'main' into dup-render/argos-static-host-urls (AI-assisted)
slorber caa565e
test(argos): screenshot /tests.html instead of faking a static host (…
slorber 7204859
fix(core): `docusaurus serve` serves existing .html files as-is (AI-a…
slorber 09dd3a0
test(core): capture that missing .html files keep the query string in…
slorber ce19b9e
Merge main into the all redirects fix
slorber 2bf011f
Merge the all redirects fix into the encoded slashes fix
slorber 6fc2f31
Merge the encoded slashes fix into the existing .html files fix
slorber 4a4ab48
Merge the existing .html files fix into the Argos repro
slorber 42b1bd7
Merge main into the existing .html files fix
slorber 7a73dbe
Merge the existing .html files fix into the Argos repro
slorber 4b96f57
Merge main into the Argos repro
slorber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Script executed:
Repository: meta/docusaurus
Length of output: 7778
Script executed:
Repository: meta/docusaurus
Length of output: 1782
Script executed:
Repository: meta/docusaurus
Length of output: 3048
Script executed:
Repository: meta/docusaurus
Length of output: 8052
Script executed:
Repository: meta/docusaurus
Length of output: 29534
Script executed:
Repository: meta/docusaurus
Length of output: 33525
Intercept
/tests.htmlbefore navigation.The new test does not install the Playwright interception described by the test intent.
docusaurus serveredirects existing.htmlpages whencleanUrlsis enabled, andpage.goto(url)follows that redirect. The screenshot can therefore finish at/testsand miss the non-canonical HTML behavior.Add a route handler before
page.gotothat fulfills/tests.htmlwith the builttests.htmlfile, then navigate to/tests.html.