docbrown/spec/system/user/user_edits_customization_spec.rb
Michael Kohl bff7cd1118
Theme data update script, remove theme choices from UI (#15225)
* Add prefer_os_color_scheme to users_settings

* Add data update script

* Update theme selector view

* Update spec wording

* Fix spec

Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>
2021-11-08 08:38:43 -05:00

21 lines
480 B
Ruby

require "rails_helper"
RSpec.describe "User edits their Customization settings", type: :system do
let(:user) { create(:user) }
before do
sign_in user
visit user_settings_path(:customization)
end
describe "visiting Customization section" do
it "makes the 'Save Button' footer sticky once a theme is selected", js: true do
expect(page).not_to have_css(".sticky")
choose("Dark Theme")
expect(page).to have_css(".sticky")
end
end
end