|
|
|
@ -14,7 +14,8 @@ describe "Workday notification settings", type: :feature, js: true do |
|
|
|
|
# Configure the reminders |
|
|
|
|
settings_page.visit! |
|
|
|
|
|
|
|
|
|
settings_page.expect_non_workdays %w[Sunday Monday Tuesday Wednesday Thursday Friday Saturday] |
|
|
|
|
settings_page.expect_workdays %w[Monday Tuesday Wednesday Thursday Friday] |
|
|
|
|
settings_page.expect_non_workdays %w[Saturday Sunday] |
|
|
|
|
|
|
|
|
|
settings_page.set_workdays Monday: true, |
|
|
|
|
Tuesday: true, |
|
|
|
@ -36,11 +37,12 @@ describe "Workday notification settings", type: :feature, js: true do |
|
|
|
|
expect(pref.reload.workdays).to eq [1, 2, 5, 6, 7] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it 'updates properly working days' do |
|
|
|
|
it 'can unselect all working days' do |
|
|
|
|
# Configure the reminders |
|
|
|
|
settings_page.visit! |
|
|
|
|
|
|
|
|
|
settings_page.expect_non_workdays %w[Sunday Monday Tuesday Wednesday Thursday Friday Saturday] |
|
|
|
|
settings_page.expect_workdays %w[Monday Tuesday Wednesday Thursday Friday] |
|
|
|
|
settings_page.expect_non_workdays %w[Saturday Sunday] |
|
|
|
|
|
|
|
|
|
settings_page.set_workdays Monday: false, |
|
|
|
|
Tuesday: false, |
|
|
|
@ -72,7 +74,8 @@ describe "Workday notification settings", type: :feature, js: true do |
|
|
|
|
settings_page.visit! |
|
|
|
|
|
|
|
|
|
# Expect Mo-Fr to be checked |
|
|
|
|
settings_page.expect_non_workdays %w[Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag] |
|
|
|
|
settings_page.expect_workdays %w[Montag Dienstag Mittwoch Donnerstag Freitag] |
|
|
|
|
settings_page.expect_non_workdays %w[Samstag Sonntag] |
|
|
|
|
|
|
|
|
|
settings_page.set_workdays Montag: true, |
|
|
|
|
Dienstag: true, |
|
|
|
|