From 9f166ee640e1776fe67a954281763cbde62f1055 Mon Sep 17 00:00:00 2001 From: Kris Date: Fri, 15 Nov 2024 13:12:18 -0500 Subject: [PATCH] Update viewing_brand_header_spec.rb the picture element won't render a broken image like previously expected from the img element in the test, so we need to add visible: :all --- spec/system/viewing_brand_header_spec.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/spec/system/viewing_brand_header_spec.rb b/spec/system/viewing_brand_header_spec.rb index 3bfd44d..1eb3e2c 100644 --- a/spec/system/viewing_brand_header_spec.rb +++ b/spec/system/viewing_brand_header_spec.rb @@ -24,7 +24,6 @@ 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, @@ -49,13 +48,8 @@ expect(page).to have_link(nil, href: "http://some.url.com") expect(page).to have_selector( - 'img#brand-logo[src="http://some.url.com/logo.png"][title="some name"]' + 'img#brand-logo[title="some name"][src="http://some.url.com/logo.png"]', visible: :all ) - - 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")