From 9eb9e043ebbe9c9913338569a84b8c0bc99bb21f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 4 Dec 2024 16:20:47 +0100 Subject: [PATCH] Fix spec --- .../recurring_meetings/recurring_meeting_create_spec.rb | 3 ++- .../recurring_meetings/recurring_meeting_crud_spec.rb | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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 e79194f05337..a06ce9be1882 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 @@ -82,6 +82,7 @@ meetings_page.set_end_date "2025-01-15" click_on "Create meeting" + wait_for_network_idle expect_and_dismiss_flash(type: :success, message: "Successful creation.") # Does not send invitation mails by default @@ -105,7 +106,7 @@ login_as current_user meetings_page.visit! expect(page).to have_current_path(meetings_page.path) - expect(page).not_to have_test_selctor("add-meeting-button") + expect(page).not_to have_test_selector("add-meeting-button") end end end 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 45ae1263f0c6..ad4e95347e54 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 @@ -106,7 +106,7 @@ it "can cancel an occurrence" do show_page.visit! - accept_confirm(I18n.t("text_are_you_sure")) do + accept_confirm(I18n.t(:label_recurring_occurrence_delete_confirmation)) do show_page.cancel_occurrence date: "12/31/2024 01:30 PM" end @@ -130,7 +130,8 @@ page.select("A number of occurrences", from: "End after") page.fill_in("Occurrences", with: "8") - click_on("Save") + sleep 0.5 + click_link_or_button("Save") end wait_for_network_idle show_page.expect_subtitle text: "Daily at 11:00 AM, ends on 01/07/2025" @@ -145,10 +146,11 @@ show_page.expect_scheduled_meeting date: "01/07/2025 01:30 PM" show_page.expect_scheduled_actions date: "01/07/2025 01:30 PM" - accept_confirm(I18n.t("text_are_you_sure")) do + accept_confirm(I18n.t(:label_recurring_occurrence_delete_confirmation)) do show_page.cancel_occurrence date: "12/31/2024 01:30 PM" end + wait_for_network_idle show_page.expect_cancelled_meeting date: "12/31/2024 01:30 PM" show_page.expect_cancelled_actions date: "12/31/2024 01:30 PM" end