From f828c30f43416d634920a4d65c5e56f1e7afc9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Tue, 8 Oct 2024 11:27:20 +0200 Subject: [PATCH] Adapt spec now it's no longer submitting --- spec/features/work_packages/edit_work_package_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/features/work_packages/edit_work_package_spec.rb b/spec/features/work_packages/edit_work_package_spec.rb index a80ed2ddd9bd..382116ed6a17 100644 --- a/spec/features/work_packages/edit_work_package_spec.rb +++ b/spec/features/work_packages/edit_work_package_spec.rb @@ -255,12 +255,11 @@ def visit! subject_field.expect_state_text "My new subject!" end - it "submits the edit mode when changing the focus" do + it "does not close the edit mode when changing the focus" do page.find("body").click - wp_page.expect_toast(message: "Successful update") - subject_field.expect_inactive! - subject_field.expect_state_text "My new subject!" + subject_field.expect_active! + wp_page.expect_no_toaster(type: :success, message: "Successful update", wait: 1) end end end