A platform for community discussion. Free, open, simple.
DEV: Restore and fix a sidebar section spec (#39639)
Jarek Radoszea153867dfd8
diff --git a/spec/system/custom_sidebar_sections_spec.rb b/spec/system/custom_sidebar_sections_spec.rbindex 1065361d648..98cc2d0fff7 100644--- a/spec/system/custom_sidebar_sections_spec.rb+++ b/spec/system/custom_sidebar_sections_spec.rb@@ -272,7 +272,7 @@ describe "Custom sidebar sections" dotags_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)+ tags_link.drag_to(latest_link, delay: 0.4)section_modal.saveexpect(section_modal).to be_closeddiff --git a/spec/system/editing_sidebar_community_section_spec.rb b/spec/system/editing_sidebar_community_section_spec.rbindex 4c7fd9dc4b2..dafa696cff5 100644--- a/spec/system/editing_sidebar_community_section_spec.rb+++ b/spec/system/editing_sidebar_community_section_spec.rb@@ -17,13 +17,13 @@ RSpec.describe "Editing Sidebar Community Section" doexpect(sidebar).to have_no_customize_community_section_buttonend- xit "allows admin to edit community section and reset to default" do+ it "allows admin to edit community section and reset to default" dosign_in(admin)visit("/latest")expect(sidebar.primary_section_icons("community")).to eq(- %w[layer-group user flag wrench paper-plane ellipsis-vertical],+ %w[layer-group user inbox flag wrench paper-plane ellipsis-vertical],)modal = sidebar.click_community_section_more_button.click_customize_community_section_button@@ -35,11 +35,11 @@ RSpec.describe "Editing Sidebar Community Section" dopage.refreshexpect(sidebar.primary_section_links("community")).to eq(- ["My posts", "Topics", "Review", "Admin", "Invite", "More"],+ ["My posts", "My messages", "Topics", "Review", "Admin", "Invite", "More"],)expect(sidebar.primary_section_icons("community")).to eq(- %w[user paper-plane flag wrench paper-plane ellipsis-vertical],+ %w[user inbox paper-plane flag wrench paper-plane ellipsis-vertical],)modal = sidebar.click_community_section_more_button.click_customize_community_section_button@@ -48,11 +48,11 @@ RSpec.describe "Editing Sidebar Community Section" doexpect(sidebar).to have_section("Community")expect(sidebar.primary_section_links("community")).to eq(- ["Topics", "My posts", "Review", "Admin", "Invite", "More"],+ ["Topics", "My posts", "My messages", "Review", "Admin", "Invite", "More"],)expect(sidebar.primary_section_icons("community")).to eq(- %w[layer-group user flag wrench paper-plane ellipsis-vertical],+ %w[layer-group user inbox flag wrench paper-plane ellipsis-vertical],)end