From 4d46be52d12524ebe2f980d827203ee541244263 Mon Sep 17 00:00:00 2001 From: awesomerobot Date: Thu, 12 Dec 2024 16:56:15 -0500 Subject: [PATCH] add default mobile test --- spec/system/viewing_brand_header_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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")