Skip to content

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.rb
index 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" do
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)
+ tags_link.drag_to(latest_link, delay: 0.4)
section_modal.save
expect(section_modal).to be_closed
diff --git a/spec/system/editing_sidebar_community_section_spec.rb b/spec/system/editing_sidebar_community_section_spec.rb
index 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" do
expect(sidebar).to have_no_customize_community_section_button
end
- xit "allows admin to edit community section and reset to default" do
+ it "allows admin to edit community section and reset to default" do
sign_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" do
page.refresh
expect(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" do
expect(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