Skip to content

Commit

Permalink
Merge pull request #9981 from alphagov/content-modelling/922-update-b…
Browse files Browse the repository at this point in the history
…anner

content-modelling/ update phase banner
  • Loading branch information
Harriethw authored Feb 26, 2025
2 parents 484509f + fb7847e commit 292c1e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<%= render "govuk_publishing_components/components/phase_banner", {
phase: "Alpha",
message: sanitize("This is a new service - your
phase: "Beta",
message: sanitize("For support, to delete a content block or to give feedback, email
#{
mail_to(
"govuk-publishing-content-modelling-team@digital.cabinet-office.gov.uk",
"feedback",
"feedback-[email protected]",
"feedback[email protected]",
{
class: "govuk-link",
},
)
} will help us to improve it.", attributes: %w(class href)),
}.", attributes: %w(class href)),
} %>
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@
end

And("I should see the object store's phase banner") do
expect(page).to have_selector(".govuk-tag", text: "Alpha")
expect(page).to have_link("feedback", href: "mailto:govuk-publishing-content-modelling-team@digital.cabinet-office.gov.uk")
expect(page).to have_selector(".govuk-tag", text: "Beta")
expect(page).to have_link("feedback[email protected]", href: "mailto:feedback-[email protected]")
end

Then(/^I should still see the live edition on the homepage$/) do
Expand Down
2 changes: 1 addition & 1 deletion test/functional/admin/errors_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Admin::ErrorsControllerTest < ActionDispatch::IntegrationTest
get "/#{error_code}"

assert_select ".govuk-header__product-name", text: ContentBlockManager.product_name
assert_select ".govuk-phase-banner__content__tag", text: "Alpha"
assert_select ".govuk-phase-banner__content__tag", text: "Beta"
end

it "should render the product name in the title" do
Expand Down

0 comments on commit 292c1e7

Please sign in to comment.