-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fixing leave channel when another window is open #4270
Conversation
Mattermost test server updated with git commit Access here: https://mattermost-webapp-pr-4270.test.mattermost.cloud |
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 good, what about tests for this?
Testing this would be super complicated because is related to async execution, I don't really know what is the other concurrent part interfering here, and I could try a cypress test, but if I'm not wrong, cypress doesn't allow multi window/tab testing. |
Ok I'll let QA decide on that |
Tested and passed. This issue is resolved.
@saturninoabril curious if this can be done with Cypress easily enough? Would need to validate proper functionality while the user leaves the channel. |
Short answer is no; it's a Cypress limitation like Jesus mentioned. |
Maybe this is a good option for rain forest. |
Since the bug does repro using a 2nd incognito browser in a new session, we should be able to cover it with RainForest I have queued the test for RF. |
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.
Thanks @jespino
LGTM!
Test server destroyed |
@jespino I don't feel comfortable reviewing this code and requested a review from someone else. |
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.
LGTM 👍
* Fixing leave channel when another window is open * Fixing tests and addressing PR review comments
@jespino Can you confirm this is cherry-picked to 5.17? |
@amyblais yes, I cherry-picked that yesterday. |
Summary
Fixing leave channel when another window is open
Ticket Link
MM-20206