Skip to content

Commit

Permalink
Add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Jul 26, 2024
1 parent fb8011a commit d8ef3ae
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/features/menu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d8ef3ae

Please sign in to comment.