Skip to content

Commit

Permalink
(dark-light-mode): Spec fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrianoudi committed Nov 15, 2024
1 parent 881288a commit 5935607
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/system/viewing_brand_header_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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")
Expand Down

0 comments on commit 5935607

Please sign in to comment.