From 8d34e1a670111dc8078c4538e839dc59602f7922 Mon Sep 17 00:00:00 2001 From: Eduardo Martinez Echevarria Date: Tue, 28 Nov 2023 19:27:43 +0100 Subject: [PATCH] Fix expected text in examples --- spec/system/menu_hacks_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/system/menu_hacks_spec.rb b/spec/system/menu_hacks_spec.rb index 5bab01472..3803fb9a3 100644 --- a/spec/system/menu_hacks_spec.rb +++ b/spec/system/menu_hacks_spec.rb @@ -46,7 +46,6 @@ it "active link containts text" do within "#breadcrumb-main-dropdown-desktop .menu-bar__main-dropdown__menu .active" do - expect(page).to have_content(text) end end @@ -256,7 +255,7 @@ find_by_id("main-dropdown-summary").hover end - it_behaves_like "has active link", "Processes" + it_behaves_like "has active link", "A new beggining" end context "when visiting a process in a custom link" do @@ -283,7 +282,7 @@ find_by_id("main-dropdown-summary").hover end - it_behaves_like "has active link", "Processes" + it_behaves_like "has active link", "A new beggining" end context "when visiting a sublink of a process not in a custom link" do @@ -292,7 +291,7 @@ find_by_id("main-dropdown-summary").hover end - it_behaves_like "has active link", "Processes" + it_behaves_like "has active link", "A new beggining" end end