Skip to content

Commit

Permalink
glimmer spec
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Nov 29, 2024
1 parent 66a67bd commit 4b23512
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions spec/system/disable_sort_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,27 @@
page.refresh
expect(find("th.activity")).to_not match_selector(".sortable")
end

context "when glimmer topic list is enabled" do
fab!(:user)

before do
SiteSetting.experimental_glimmer_topic_list_groups = Group::AUTO_GROUPS[:everyone]
sign_in(user)
end

it "disables the ability to sort topic list columns" do
category_page.visit(category)
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

0 comments on commit 4b23512

Please sign in to comment.