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

Try to make Capy confirmation checking more robust

Alexander Brandon Coles8c12e1dd917d
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 e58449faafd..b823a84c37e 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
@@ -90,7 +90,7 @@ RSpec.describe "Recurring meetings CRUD",
show_page.delete_meeting_series
show_page.within_modal "Delete meeting series" do
- page.check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Delete permanently"
end
@@ -120,7 +120,7 @@ RSpec.describe "Recurring meetings CRUD",
show_page.cancel_occurrence date: "12/31/2024 01:30 PM"
show_page.within_modal "Delete meeting occurrence" do
- check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Delete permanently"
end
@@ -138,7 +138,7 @@ RSpec.describe "Recurring meetings CRUD",
show_page.cancel_scheduled_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"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Cancel occurrence"
end
@@ -180,7 +180,7 @@ RSpec.describe "Recurring meetings CRUD",
show_page.cancel_occurrence date: "12/31/2024 01:30 PM"
show_page.within_modal "Delete meeting occurrence" do
- check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Delete permanently"
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 e4df247c93a..5923da9a1b2 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
@@ -82,7 +82,7 @@ RSpec.describe "Recurring meetings end series",
expect(page).to have_text("Ending the series will delete any future open or scheduled meeting occurrences")
retry_block do
- check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
expect(page).to have_checked_field("I understand that this deletion cannot be reversed")
end
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 0934bb86527..ab18073109c 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
@@ -92,7 +92,7 @@ RSpec.describe "Recurring meetings global CRUD",
show_page.delete_meeting_series
show_page.within_modal "Delete meeting series" do
- page.check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Delete permanently"
end
@@ -108,7 +108,7 @@ RSpec.describe "Recurring meetings global CRUD",
show_page.cancel_occurrence date: "12/31/2024 01:30 PM"
show_page.within_modal "Delete meeting occurrence" do
- check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Delete permanently"
end
@@ -126,7 +126,7 @@ RSpec.describe "Recurring meetings global CRUD",
show_page.cancel_scheduled_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"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Cancel occurrence"
end
diff --git a/modules/meeting/spec/features/structured_meetings/structured_meeting_crud_spec.rb b/modules/meeting/spec/features/structured_meetings/structured_meeting_crud_spec.rb
index a66e6b51189..a1a7a18216e 100644
--- a/modules/meeting/spec/features/structured_meetings/structured_meeting_crud_spec.rb
+++ b/modules/meeting/spec/features/structured_meetings/structured_meeting_crud_spec.rb
@@ -214,7 +214,7 @@ RSpec.describe "Structured meetings CRUD",
show_page.expect_modal "Delete meeting"
show_page.within_modal "Delete meeting" do
- check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Delete permanently"
end
diff --git a/modules/meeting/spec/features/structured_meetings/structured_meeting_global_crud_spec.rb b/modules/meeting/spec/features/structured_meetings/structured_meeting_global_crud_spec.rb
index 59644d974c0..23f78d5e0d3 100644
--- a/modules/meeting/spec/features/structured_meetings/structured_meeting_global_crud_spec.rb
+++ b/modules/meeting/spec/features/structured_meetings/structured_meeting_global_crud_spec.rb
@@ -97,7 +97,7 @@ RSpec.describe "Structured meetings global CRUD",
show_page.expect_modal "Delete meeting"
show_page.within_modal "Delete meeting" do
- check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Delete permanently"
end
diff --git a/spec/features/custom_fields/hierarchy_custom_field_spec.rb b/spec/features/custom_fields/hierarchy_custom_field_spec.rb
index f877e246228..918cae3f5f4 100644
--- a/spec/features/custom_fields/hierarchy_custom_field_spec.rb
+++ b/spec/features/custom_fields/hierarchy_custom_field_spec.rb
@@ -128,7 +128,7 @@ RSpec.describe "custom fields of type hierarchy", :js do
hierarchy_page.open_action_menu_for("Phoenix Squad")
click_on "Delete"
expect(page).to have_test_selector("op-custom-fields--delete-item-dialog")
- check "I understand that this deletion cannot be reversed"
+ check "I understand that this deletion cannot be reversed", allow_label_click: true
click_on "Delete permanently"
expect(page).not_to have_test_selector("op-custom-fields--delete-item-dialog")
expect(page).to have_test_selector("op-custom-fields--hierarchy-item", count: 1)