mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
UX: replaces custom more menu by d-menu (#29090)
One of the big advantages is a nicer menu on mobile. This commit also fixes a bug where the close modal action was called for any destroyed d-menu trigger, even if this specific menu was not expanding, which means it was closing a different modal than its own modal, given we can only have one modal at a time.
This commit is contained in:
@ -34,14 +34,14 @@ module PageObjects
|
||||
I18n.t("js.sidebar.sections.community.edit_section.sidebar"),
|
||||
)
|
||||
|
||||
expect(community_section).to have_no_css(".sidebar-more-section-links-details")
|
||||
expect(community_section).to have_no_css(".sidebar-more-section-content")
|
||||
|
||||
PageObjects::Modals::SidebarSectionForm.new
|
||||
end
|
||||
|
||||
def click_community_section_more_button
|
||||
community_section.click_button(class: "sidebar-more-section-links-details-summary")
|
||||
expect(community_section).to have_css(".sidebar-more-section-links-details")
|
||||
community_section.click_button(class: "sidebar-more-section-trigger")
|
||||
expect(community_section).to have_css(".sidebar-more-section-content")
|
||||
self
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user