-
Notifications
You must be signed in to change notification settings - Fork 2
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
[DRAFT] LPD-39592 #6088
base: master
Are you sure you want to change the base?
[DRAFT] LPD-39592 #6088
Conversation
CI is automatically triggering the following test suites:
|
✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutesClick here for more details.Base Branch:Branch Name: master Sender Branch:Branch Name: LPD-39592 1 Successful Jobs:For more details click here. |
Jenkins Build:test-portal-source-format#10609 Jenkins Report:jenkins-report.html Jenkins Suite:sf Pull Request:liferay-content-management#6088 Testray Routine:EE Pull Request Testray Build:[master] ci:test:sf - NemethNorbert > liferay-content-management - PR#6088 - 2024-11-12[07:24:02] Testray Build ID:66443092 Testray Importer:publish-testray-report#40379 |
Check if this pull also solves journalArticleAutosave.spec.ts:327:1 Undo/Redo buttons work with metadata fields |
It does not, unfortunately that test needs to be rewritten, as the issue it fails with cannot be reproduced manually and it was never reproducible. |
Unfortunately, it doesn't pass :sob. |
I have been checking and testing this issue. I do understand what the problem is and that the solution provided "solves" it. However, I am not very happy with this approach for two main reasons:
So, I have checked that the I've tried with the
To be honest, I don't know if that would solve or not the issue, but I think we should investigate a little bit more. If not possible, we can go with this approach (if UX/PM are ok). I will work on this in the next days ;-) |
This is a draft to discuss the solution
What is this trying to solve?
LPD-39592
Because the implementation of UndoRedo relies on custom events, and we are using the onBlur event of the input fields to create new history steps, there is an edge case issue, where the user clicks on undo right after editing an input field. In this case we handle undo before we create the new history step from the blur event of the field.
How am I fixing it?
I made sure the Undo / Redo button is disabled while we are editing an input field.
How can you verify that it works?
Follow the reproduction steps from the ticket
Why doesn't this include any test?
This is a draft to discuss the possible solution, however this is changing the UI behaviour by disabling the button. PM review is needed as well
/cc @ambrinchaudhary