DEV: Update spec in preparation for dropping glimmer_topic_list_mode (#714)

This commit is contained in:
David Taylor 2025-04-03 15:50:08 +01:00 committed by GitHub
parent cbebb8da6f
commit b023c4d2f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 26 deletions

View File

@ -22,30 +22,4 @@ describe "Disabling topic list sorting", type: :system do
page.refresh
expect(find("th.activity")).to_not match_selector(".sortable")
end
# TODO: cvx - remove after the glimmer topic list transition
context "when glimmer topic list is enabled" do
fab!(:user)
before do
SiteSetting.glimmer_topic_list_mode = "enabled"
sign_in(user)
end
it "disables the ability to sort topic list columns" do
category_page.visit(category)
expect(page).to have_css(".topic-list:not(.ember-view)")
expect(find("th.activity")).to match_selector(".sortable")
category.custom_fields["disable_topic_resorting"] = true
category.save!
page.refresh
expect(find("th.activity")).to match_selector(".sortable")
SiteSetting.disable_resorting_on_categories_enabled = true
page.refresh
expect(find("th.activity")).to_not match_selector(".sortable")
end
end
end