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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
adjust button text
Jonas Jabaric19dce03e707
diff --git a/spec/features/work_packages/reminders_spec.rb b/spec/features/work_packages/reminders_spec.rbindex 73e24e90fb1..1571c1599c0 100644--- a/spec/features/work_packages/reminders_spec.rb+++ b/spec/features/work_packages/reminders_spec.rb@@ -83,7 +83,7 @@ RSpec.describe "Work package reminder modal",fill_in "Time", with: timefill_in "Note", with: "Never forget!"- click_link_or_button "Schedule"+ click_link_or_button "Set reminder"endwork_package_page.expect_and_dismiss_flash(type: :success,@@ -215,7 +215,7 @@ RSpec.describe "Work package reminder modal",fill_in "Date", with: yesterdayfill_in "Time", with: two_amfill_in "Note", with: "Never forget!"- click_link_or_button "Schedule"+ click_link_or_button "Set reminder"wait_for_network_idleexpect(page).to have_css(".FormControl-inlineValidation", text: "Date must be in the future.")@@ -224,7 +224,7 @@ RSpec.describe "Work package reminder modal",# 30 minutes agofill_in "Date", with: todayfill_in "Time", with: thirty_minutes_ago- click_link_or_button "Schedule"+ click_link_or_button "Set reminder"wait_for_network_idleexpect(page).to have_css(".FormControl-inlineValidation", text: "Time must be in the future.")@@ -233,7 +233,7 @@ RSpec.describe "Work package reminder modal",# 30 minutes from nowfill_in "Date", with: todayfill_in "Time", with: thirty_minutes_from_now- click_link_or_button "Schedule"+ click_link_or_button "Set reminder"wait_for_network_idleend@@ -256,7 +256,7 @@ RSpec.describe "Work package reminder modal",text: "You will receive a notification for this work package at the chosen time.")# Click the Schedule button without filling in the date or time- click_link_or_button "Schedule"+ click_link_or_button "Set reminder"wait_for_network_idleexpect(page).to have_css(".FormControl-inlineValidation", text: "Date can't be blank")@@ -264,7 +264,7 @@ RSpec.describe "Work package reminder modal",# Fill in the date but not the timefill_in "Date", with: 1.week.from_now.to_date- click_link_or_button "Schedule"+ click_link_or_button "Set reminder"wait_for_network_idle# The error message is only on the time field@@ -274,7 +274,7 @@ RSpec.describe "Work package reminder modal",# Fill in the time but not the datefill_in "Date", with: ""fill_in "Time", with: Time.zone.parse("05:00")- click_link_or_button "Schedule"+ click_link_or_button "Set reminder"wait_for_network_idleexpect(page).to have_css(".FormControl-inlineValidation", text: "Date can't be blank.")@@ -355,7 +355,7 @@ RSpec.describe "Work package reminder modal",expect(page).to have_field("Date")expect(page).to have_field("Time")expect(page).to have_field("Note")- expect(page).to have_button("Schedule")+ expect(page).to have_button("Set reminder")endendend