Skip to content

Commit

Permalink
app settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis committed Aug 9, 2024
1 parent 7885181 commit afcc6fa
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/system/app_settings_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,20 @@ class AppSettingsTest < ApplicationSystemTestCase
page.driver.browser.action.double_click(button.native).perform
assert_text 'Status Rejected Text Test'
end

test 'App maintenance message' do
user = FactoryGirl.create(:user, role: User::ADMIN)
login_as(user)

visit root_url

find('i.fa.fa-cog').click
click_link("App Settings")

choose('app_settings_app_maintenance_true')
fill_in 'app_settings_app_maintenance_message', with: 'App maintenance message Text Test'
click_button('Save Settings')

assert_selector "p", text: "App maintenance message Text Test"
end
end

0 comments on commit afcc6fa

Please sign in to comment.