diff --git a/spec/system/viewing_brand_header_spec.rb b/spec/system/viewing_brand_header_spec.rb index dd4fca7..be75fd4 100644 --- a/spec/system/viewing_brand_header_spec.rb +++ b/spec/system/viewing_brand_header_spec.rb @@ -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")