diff --git a/spec/system/viewing_brand_header_spec.rb b/spec/system/viewing_brand_header_spec.rb index e7f1b57..3bfd44d 100644 --- a/spec/system/viewing_brand_header_spec.rb +++ b/spec/system/viewing_brand_header_spec.rb @@ -24,6 +24,7 @@ theme.update_setting(:website_url, "http://some.url.com") theme.update_setting(:brand_name, "some name") theme.update_setting(:logo_url, "http://some.url.com/logo.png") + theme.update_setting(:logo_dark_url, "http://some.url.com/logo-dark.png") theme.update_setting( :links, @@ -48,8 +49,13 @@ expect(page).to have_link(nil, href: "http://some.url.com") expect(page).to have_selector( - 'img#brand-logo[title="some name"][src="http://some.url.com/logo.png"]', + 'img#brand-logo[src="http://some.url.com/logo.png"][title="some name"]' ) + + expect(page).to have_selector( + 'img#brand-logo[src="http://some.url.com/logo-dark.png"][title="some name"]' + ) + expect(page).to have_link("First Link", href: "http://some.url.com/first", target: "_blank") expect(page).to have_link("Second Link", href: "http://some.url.com/second", target: "_self")