-
Notifications
You must be signed in to change notification settings - Fork 109
fix: only initialize editor once #3893
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
Conversation
593645c to
5dbd7bd
Compare
|
/backport 5dbd7bd to stable26 |
2 flaky tests on run #8903 ↗︎Details:
|
||||||||||||||||||||||||
| Test | Artifacts | |
|---|---|---|
| Sync > saves the actual file and document state |
Output
Screenshots
|
|
| Sync > recovers from a lost connection |
Output
Screenshots
|
|
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.
mejo-
left a comment
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.
Code looks sensible to me.
5dbd7bd to
eeee735
Compare
|
/compile |
|
Is the failing Cypress test the one you would expect to have fixed with this PR?
|
Yes. I saw it fail occasionally locally - but three failures in a row is way too much. Will need to investigate some more. |
When we recover a session the editor already exists. Start the syncing again as the polling backend is created from scratch. Do not attach further events to the editor and do not reset the content. Signed-off-by: Max <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
7cda8e1 to
2d2c300
Compare
|
I made the tests more robust i think. Let's see if they turn flaky eventually. The actual fix to the underlying problem would be #3899 . |
|
The backport to stable26 failed. Please do this backport manually. |
|
back ported manually with #3900 |
📝 Summary
When we recover a session the editor already exists.
Make sure editing can be resumed:
Start the syncing again as the polling backend is created from scratch.
Do not attach further events to the editor
Do not reset the content.
Resolves: Test failures in sync spec
npm run lint/npm run stylelint/composer run cs:check)