Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Dec 4, 2024
1 parent 8e014c5 commit 9eb9e04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 9eb9e04

Please sign in to comment.