-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
[FIX] Closing sidebar when room menu is clicked. #13842
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.
can you please add an end-to-end test to prevent this? like, test clicking on the '3 dots' and see if the sidebar is still open.
I would add it after opening the menu on this test.
5dfa3b0
to
d5577a0
Compare
@sampaiodiego I have added the test, can you please review it |
tests/pageobjects/side-nav.page.js
Outdated
@@ -52,6 +52,8 @@ class SideNav extends Page { | |||
|
|||
get sidebarWrap() { return browser.element('.sidebar-wrap'); } | |||
|
|||
get sidebarItemMenu() { return browser.element('.sidebar-menu'); } |
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 haven't found this element on the source code. Maybe you were trying to get sidebar-item__menu
instead?
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.
Yes sorry
@sampaiodiego I've rectified the mistake. |
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 @Kailash0311 .. but the tests are not passing.
you can run tests locally by running meteor setting the env var TEST_MODE=true
like:
TEST_MODE=true meteor
and in another console run meteor npm run chimp-test
… into emoji-upgrades * 'emoji-upgrades' of https://github.com/wreiske/Rocket.Chat: Settings: disable reset button (RocketChat#14026) Settings: hiding reset button for readonly fields (RocketChat#14025) [NEW] Add support to updatedSince parameter in emoji-custom.list and deprecated old endpoint (RocketChat#13510) [IMPROVE] Add permission to change other user profile avatar (RocketChat#13884) [IMPROVE] UI of Permissions page (RocketChat#13732) [NEW] Chatpal: Enable custom search parameters (RocketChat#13828) (RocketChat#13829) [FIX] Closing sidebar when room menu is clicked. (RocketChat#13842) [FIX] Check settings for name requirement before validating (RocketChat#14021) Fix debug logging not being enabled by the setting (RocketChat#13979) [FIX] Links and upload paths when running in a subdir (RocketChat#13982)
Closes #13841.
Stops propagation of "closing the menu event" onto the sidebar_menu class.