From d8ef3ae99f40736e81119feabffebc7fc512309c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Pereira=20de=20Lucena?= Date: Fri, 26 Jul 2024 11:02:17 +0200 Subject: [PATCH] Add spec --- spec/features/menu_spec.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/spec/features/menu_spec.rb b/spec/features/menu_spec.rb index 00d35ed..7bf409b 100644 --- a/spec/features/menu_spec.rb +++ b/spec/features/menu_spec.rb @@ -97,5 +97,26 @@ end end end + context "when the device is mobile" do + before do + driven_by(:iphone) + switch_to_host(organization.host) + visit decidim.root_path + end + + specify "the menu is customized" do + click_on "Main menu" + + within "#breadcrumb-main-dropdown-mobile" do + expect(page).to have_content("Home") + expect(page).to have_content("Start here") + expect(page).to have_content("Participate") + expect(page).to have_content("The Association") + expect(page).to have_content("News") + expect(page).to have_content("Decidim Fest") + expect(page).to have_content("Chat") + end + end + end end end