Skip to content

Commit

Permalink
add default mobile test
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot committed Dec 12, 2024
1 parent 2264755 commit 4d46be5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/system/viewing_brand_header_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
expect(page).not_to have_css(".b-header")
end

it "renders as a dropdown on mobile", mobile: true do
theme.update_setting(:show_bar_on_mobile, false)
theme.save!

visit("/")

expect(page).to have_css("#toggle-hamburger-brand-menu")
end

it "should display the brand header with the correct title and links" do
theme.update_setting(:website_url, "http://some.url.com")
theme.update_setting(:brand_name, "some name")
Expand Down

0 comments on commit 4d46be5

Please sign in to comment.