mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: reliably reorder link in custom sections (#24188)
Two changes were introduced: 1. Reorder links on sidebar section is removed. Clicking and holding the mouse for 250ms was unintuitive; 2. Fixed bugs when reorder is done in edit modal.
This commit is contained in:
committed by
GitHub
parent
1d96b0a99a
commit
1c395e1a01
@@ -178,9 +178,12 @@ describe "Custom sidebar sections", type: :system do
|
||||
["Sidebar Tags", "Sidebar Categories", "Sidebar Latest"],
|
||||
)
|
||||
|
||||
tags_link = find(".sidebar-section-link[data-link-name='Sidebar Tags']")
|
||||
latest_link = find(".sidebar-section-link[data-link-name='Sidebar Latest']")
|
||||
sidebar.edit_custom_section("My section")
|
||||
|
||||
tags_link = find(".draggable[data-link-name='Sidebar Tags']")
|
||||
latest_link = find(".draggable[data-link-name='Sidebar Latest']")
|
||||
tags_link.drag_to(latest_link, html5: true, delay: 0.4)
|
||||
section_modal.save
|
||||
|
||||
expect(sidebar.primary_section_links("my-section")).to eq(
|
||||
["Sidebar Categories", "Sidebar Tags", "Sidebar Latest"],
|
||||
|
||||
Reference in New Issue
Block a user