Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Revert "adapt spec which failed due to link renaming"

Christophe Bliardab348a3f8717
diff --git a/spec/features/admin/working_days_spec.rb b/spec/features/admin/working_days_spec.rb
index 327234bcff6..e5fb5a47f49 100644
--- a/spec/features/admin/working_days_spec.rb
+++ b/spec/features/admin/working_days_spec.rb
@@ -187,13 +187,13 @@ describe 'Working Days', js: true do
end
it 'can add non-working days' do
- click_on 'Add non-working day'
+ click_on 'Non-working day'
# It can cancel and reopen
page.within('[data-qa-selector="op-datepicker-modal"]') do
click_on 'Cancel'
end
- click_on 'Add non-working day'
+ click_on 'Non-working day'
page.within('[data-qa-selector="op-datepicker-modal"]') do
fill_in 'name', with: 'My holiday'
@@ -209,7 +209,7 @@ describe 'Working Days', js: true do
expect(page).to have_selector('.fc-list-event-title', text: 'My holiday')
# Add a second day
- click_on 'Add non-working day'
+ click_on 'Non-working day'
page.within('[data-qa-selector="op-datepicker-modal"]') do
fill_in 'name', with: 'Another important day'
@@ -234,7 +234,7 @@ describe 'Working Days', js: true do
expect(nwd2.date).to eq date2
# Check if date and name are entered then close the datepicker
- click_on 'Add non-working day'
+ click_on 'Non-working day'
page.within('[data-qa-selector="op-datepicker-modal"]') do
click_on 'Add'