-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MM-42443]: fix selectionRange updates in edit_post component #10035
Conversation
@amyblais 2/3 for cloud release |
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.
Works great @michelengelen
/e2e-test |
Triggering e2e testing with options: |
Successfully triggered e2e testing! |
Thanks @michelengelen
|
@michelengelen |
hi @jgilliam17 ... I adjusted the script to wait a bit before searching for the |
Thanks @michelengelen Can you please update the branch so I can re-run the e2es. Thanks |
# Conflicts: # components/edit_post/edit_post.tsx
@jgilliam17 merged master just now ... feel free to re-run whenever you like! |
/e2e-test |
E2E test running here |
Thanks @michelengelen I am starting to think this may be a flaky test MM-T2139, full report here |
I think most of those were recently addressed, especially by #10053. I'll update this PR then will run E2E again. Thanks Jelena! |
/update-branch |
Oopss, sorry, I thought other failed tests from the report. I'll take a look what's going on with MM-T2139. |
@jgilliam17 MM-T2139 should be good now. Please take a look again. |
Thanks @michelengelen - looks good to merge. |
Test server destroyed |
/cherry-pick cloud |
Cherry pick is scheduled. |
…most#10035) * fixed setting selections with handling selectionRanges after state updates * adjusted waiting time on e2e test for aborting message edit in main channel view * fixed some errors after merging master * increased wait times for MM-T2139 * fix flaky MM-T2139 Co-authored-by: Mattermod <[email protected]> Co-authored-by: Saturnino Abril <[email protected]> (cherry picked from commit e155dad)
#10066) * fixed setting selections with handling selectionRanges after state updates * adjusted waiting time on e2e test for aborting message edit in main channel view * fixed some errors after merging master * increased wait times for MM-T2139 * fix flaky MM-T2139 Co-authored-by: Mattermod <[email protected]> Co-authored-by: Saturnino Abril <[email protected]> (cherry picked from commit e155dad) Co-authored-by: Michel Engelen <[email protected]>
…most#10035) * fixed setting selections with handling selectionRanges after state updates * adjusted waiting time on e2e test for aborting message edit in main channel view * fixed some errors after merging master * increased wait times for MM-T2139 * fix flaky MM-T2139 Co-authored-by: Mattermod <[email protected]> Co-authored-by: Saturnino Abril <[email protected]>
Summary
Fixed updating the inputs
selectionRange
by using the state to determine whenever it has to be manually updated.This should go hand in hand with #10034 since changes in this PR might affect it directly.
I discovered that only italic markdown is being handled differently and the italic markers are excluded from the selection. I would propose to add other markers as well (e.g. bold,
strikethrough, etc.) and let the manual update on selectionRanges be handled by the component (maybe write a getter function in Utils, but let the actual updates to the input be handled inside the component)Ticket Link
MM-42443
Related Pull Requests
n/a
Screenshots
n/a
Release Note