-
Notifications
You must be signed in to change notification settings - Fork 22
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
#9244: add Move/Copy mod component actions #9245
Conversation
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.
I decided to just drop AddToMod now. The only reason to keep it would be to handle unsaved standalone mod components that existed before #9219
After the next slice, there won't be any unsaved standalone mod components
If we don't get that slice in, users can just save the mod and then copy/move the mod component
helpers.setSubmitting(false); | ||
return; | ||
} | ||
|
||
try { | ||
// If the active mod's saved definition could be loaded from the server, we need to use createModFromMod |
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.
🐛 Bugfix: The order of the branches didn't work because activeModDefinition would be defined when a mod component was selected within an unsaved mod
259e03b
to
b42c9be
Compare
Drop invalid page editor page object method Fix CreateModModalBody logic
99f9601
to
9c49084
Compare
@@ -238,34 +289,6 @@ export class PageEditorPage extends BasePageObject { | |||
await deactivateModModal.deactivateButton.click(); | |||
} | |||
|
|||
@ModifiesModFormState | |||
async createModFromModComponent({ |
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.
Method was not used in any tests. Uses the modal that's been dropped
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9245 +/- ##
==========================================
+ Coverage 74.24% 75.03% +0.78%
==========================================
Files 1332 1371 +39
Lines 40817 42374 +1557
Branches 7634 7922 +288
==========================================
+ Hits 30306 31795 +1489
- Misses 10511 10579 +68 ☔ View full report in Codecov by Sentry. |
Playwright test resultsDetails Open report ↗︎ Flaky testschrome › tests/pageEditor/addStarterBrick.spec.ts › Add starter brick to mod Skipped testschrome › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor |
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.
We might want to consider adding more test coverage per moving/copying mod components to existing mods
No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack. Do not edit this comment manually. |
What does this PR do?
Move to mod
andCopy to mod
actionsReviewer Notes
Checklist
Future Work
For more information on our expectations for the PR process, see the
code review principles doc