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

Update specs

Mir Bhatiaf173dcaea842
diff --git a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_create_spec.rb b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_create_spec.rb
index 924ef5639ce..5a781213c2c 100644
--- a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_create_spec.rb
+++ b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_create_spec.rb
@@ -88,6 +88,7 @@ RSpec.describe "Recurring meetings creation",
meetings_page.set_end_after "a specific date"
meetings_page.set_end_date "2025-01-15"
+ sleep 0.5 # quick fix as wait_for_network_idle isn't working all the time
expect(page).to have_text "Every week on Tuesday at 01:30 PM"
click_on "Create meeting"
@@ -127,8 +128,8 @@ RSpec.describe "Recurring meetings creation",
expect(page).to have_css(".start_time", count: 3)
show_page.expect_open_meeting date: "12/31/2024 01:30 PM"
- show_page.expect_scheduled_meeting date: "01/07/2025 01:30 PM"
- show_page.expect_scheduled_meeting date: "01/14/2025 01:30 PM"
+ show_page.expect_planned_meeting date: "01/07/2025 01:30 PM"
+ show_page.expect_planned_meeting date: "01/14/2025 01:30 PM"
perform_enqueued_jobs
expect(ActionMailer::Base.deliveries.size).to eq 2
diff --git a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_crud_spec.rb b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_crud_spec.rb
index 8e5ee827442..e26c01837cc 100644
--- a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_crud_spec.rb
+++ b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_crud_spec.rb
@@ -100,17 +100,17 @@ RSpec.describe "Recurring meetings CRUD",
show_page.expect_no_meeting date: "12/31/2024 01:30 PM"
end
- it "can use the 'Create from template' button" do
+ it "can use the 'Open' button" do
show_page.visit!
- show_page.create_from_template date: "01/07/2025 01:30 PM"
+ show_page.open date: "01/07/2025 01:30 PM"
wait_for_reload
expect(page).to have_current_path project_meeting_path(project, Meeting.last)
show_page.visit!
- show_page.expect_no_scheduled_meeting date: "01/07/2025 01:30 PM"
+ show_page.expect_no_planned_meeting date: "01/07/2025 01:30 PM"
show_page.expect_open_meeting date: "01/07/2025 01:30 PM"
end
@@ -132,10 +132,10 @@ RSpec.describe "Recurring meetings CRUD",
show_page.expect_cancelled_meeting date: "12/31/2024 01:30 PM"
end
- it "can cancel a scheduled occurrence from the show page" do
+ it "can cancel a planned occurrence from the show page" do
show_page.visit!
- show_page.cancel_scheduled_occurrence date: "01/07/2025 01:30 PM"
+ show_page.cancel_planned_occurrence date: "01/07/2025 01:30 PM"
show_page.within_modal "Cancel meeting occurrence" do
check "I understand that this deletion cannot be reversed", allow_label_click: true
@@ -174,8 +174,8 @@ RSpec.describe "Recurring meetings CRUD",
show_page.expect_open_meeting date: "12/31/2024 01:30 PM"
show_page.expect_open_actions date: "12/31/2024 01:30 PM"
- show_page.expect_scheduled_meeting date: "01/07/2025 01:30 PM"
- show_page.expect_scheduled_actions date: "01/07/2025 01:30 PM"
+ show_page.expect_planned_meeting date: "01/07/2025 01:30 PM"
+ show_page.expect_planned_actions date: "01/07/2025 01:30 PM"
show_page.cancel_occurrence date: "12/31/2024 01:30 PM"
show_page.within_modal "Delete meeting occurrence" do
@@ -198,7 +198,7 @@ RSpec.describe "Recurring meetings CRUD",
it "does not allow to act on the recurring meeting" do
show_page.visit!
- expect(page).to have_no_content "Create from template"
+ expect(page).to have_no_button "Open"
show_page.expect_open_meeting date: "12/31/2024 01:30 PM"
within("li", text: "12/31/2024 01:30 PM") do
@@ -211,8 +211,8 @@ RSpec.describe "Recurring meetings CRUD",
click_on "more-button"
end
- show_page.expect_scheduled_meeting date: "01/07/2025 01:30 PM"
- show_page.expect_scheduled_meeting date: "01/14/2025 01:30 PM"
+ show_page.expect_planned_meeting date: "01/07/2025 01:30 PM"
+ show_page.expect_planned_meeting date: "01/14/2025 01:30 PM"
expect(page).not_to have_test_selector "recurring-meeting-action-menu"
end
diff --git a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_end_series_spec.rb b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_end_series_spec.rb
index 4a9294b3237..d992abbbd28 100644
--- a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_end_series_spec.rb
+++ b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_end_series_spec.rb
@@ -88,7 +88,7 @@ RSpec.describe "Recurring meetings end series", :js do
end
expect(page).to have_current_path recurring_meeting_path(meeting)
- expect(page).to have_text("Nothing to display")
+ expect(page).to have_text("No open meetings at the moment")
end
context "when meeting start time is in the future" do
diff --git a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_global_crud_spec.rb b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_global_crud_spec.rb
index e61c5b29b11..ec0d8504949 100644
--- a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_global_crud_spec.rb
+++ b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_global_crud_spec.rb
@@ -119,10 +119,10 @@ RSpec.describe "Recurring meetings global CRUD", :js do
show_page.expect_cancelled_meeting date: "12/31/2024 01:30 PM"
end
- it "can cancel a scheduled occurrence from the show page" do
+ it "can cancel a planned occurrence from the show page" do
show_page.visit!
- show_page.cancel_scheduled_occurrence date: "01/07/2025 01:30 PM"
+ show_page.cancel_planned_occurrence date: "01/07/2025 01:30 PM"
show_page.within_modal "Cancel meeting occurrence" do
check "I understand that this deletion cannot be reversed", allow_label_click: true
diff --git a/modules/meeting/spec/support/pages/recurring_meeting/show.rb b/modules/meeting/spec/support/pages/recurring_meeting/show.rb
index c49abb34b82..b3fbfb44938 100644
--- a/modules/meeting/spec/support/pages/recurring_meeting/show.rb
+++ b/modules/meeting/spec/support/pages/recurring_meeting/show.rb
@@ -46,15 +46,15 @@ module Pages::RecurringMeeting
end
end
- def expect_scheduled_meeting(date:)
+ def expect_planned_meeting(date:)
within("li", text: date) do
- expect(page).to have_css(".status", text: "Scheduled")
+ expect(page).to have_css(".status", text: "Planned")
end
end
- def expect_no_scheduled_meeting(date:)
+ def expect_no_planned_meeting(date:)
within("li", text: date) do
- expect(page).to have_no_css(".status", text: "Scheduled")
+ expect(page).to have_no_css(".status", text: "Planned")
end
end
@@ -89,9 +89,9 @@ module Pages::RecurringMeeting
end
end
- def create_from_template(date:)
+ def open(date:)
within("li", text: date) do
- click_on "Create from template"
+ click_on "Open"
end
end
@@ -104,7 +104,7 @@ module Pages::RecurringMeeting
expect_modal("Delete meeting occurrence")
end
- def cancel_scheduled_occurrence(date:)
+ def cancel_planned_occurrence(date:)
within("li", text: date) do
click_on "more-button"
click_on "Cancel this occurrence"
@@ -165,7 +165,7 @@ module Pages::RecurringMeeting
end
end
- def expect_scheduled_actions(date:)
+ def expect_planned_actions(date:)
within("li", text: date) do
click_on "more-button"