You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: expect the unsuffixed file name and role in the xsl upload test - #19336
Updates the expected value in the generateFileData unit test should preserve the declared stylesheet type and original contents.
Why?
The test fails on main. It was added in c21deda after #19210 removed the -original suffix from retained originals and added a role to each planned file. The test still expected the old values:
payloadcms/payload#19210: Removes the -original suffix from retained upload originals, matching the filename expected by this test.
Suggested reviewers:patrikkozak
Merge Risk: Minimal · up to aadf5
This test-only update aligns the expected filename and role with current behavior and introduces no merge-blocking risk.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly identifies the test change: it updates the expected filename and role for the XSL upload test.
Description check
The description directly explains the failing test, the outdated expectations, and the exact expected values being updated.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
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
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.
What?
Updates the expected value in the
generateFileDataunit testshould preserve the declared stylesheet type and original contents.Why?
The test fails on
main. It was added in c21deda after #19210 removed the-originalsuffix from retained originals and added aroleto each planned file. The test still expected the old values:How?
The test now expects
reference.xslwithrole: { type: 'default' }. Only the test changes.