Skip to content

Commit

Permalink
Merge pull request #3794 from DFE-Digital/change-header-font-colour-f…
Browse files Browse the repository at this point in the history
…rom-white-to-black

Spec fixes following colour changes
  • Loading branch information
martyn-w authored Jan 10, 2024
2 parents 0ee9db9 + caf1994 commit 7d50000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/components/content/adviser_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
page
end

let(:color) { "purple" }
let(:color) { "pink" }
let(:margin) { true }
let(:heading) { :m }
let(:component) { described_class.new(title: "title", intro: "intro", color: color, heading: heading, margin: margin) }

it { is_expected.to have_css("h2.heading-m.heading--box-pink", text: "title") }
it { is_expected.to have_css("h2.heading-m.heading--box-#{color}", text: "title") }
it { is_expected.to have_css("p", text: "intro") }
it { is_expected.to have_css(".action-container--purple") }
it { is_expected.to have_css(".action-container--#{color}") }
it { is_expected.to have_css("form") }
it { is_expected.to have_link("privacy notice", href: "/privacy-policy?id=123") }
it { is_expected.not_to have_css(".action-container--no-margin") }
Expand Down
6 changes: 3 additions & 3 deletions spec/components/content/mailing_list_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
page
end

let(:color) { "purple" }
let(:color) { "pink" }
let(:margin) { true }
let(:heading) { :m }
let(:component) { described_class.new(title: "title", intro: "intro", color: color, heading: heading, margin: margin) }

it { is_expected.to have_css("h2.heading-m.heading--box-pink", text: "title") }
it { is_expected.to have_css("h2.heading-m.heading--box-#{color}", text: "title") }
it { is_expected.to have_css("p", text: "intro") }
it { is_expected.to have_css(".action-container--purple") }
it { is_expected.to have_css(".action-container--#{color}") }
it { is_expected.to have_css("form") }
it { is_expected.to have_link("privacy notice", href: "/privacy-policy?id=123") }
it { is_expected.not_to have_css(".action-container--no-margin") }
Expand Down

0 comments on commit 7d50000

Please sign in to comment.