Skip to content

Commit

Permalink
Merge pull request #9757 from alphagov/content-modelling/773-phase-ba…
Browse files Browse the repository at this point in the history
…nner

add phase banner for content block manager
  • Loading branch information
Harriethw authored Dec 19, 2024
2 parents 3a5111e + 8688d5a commit 2037a38
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<%= render "govuk_publishing_components/components/phase_banner", {
phase: "Alpha",
message: sanitize("This is a new service - your
#{
mail_to(
"govuk-publishing-content-modelling-team@digital.cabinet-office.gov.uk",
"feedback",
{
class: "govuk-link",
},
)
} will help us to improve it.", attributes: %w(class href)),
} %>
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Feature: Content block manager
When I visit the Content Block Manager home page
Then I should see the object store's title in the header
And I should see the object store's navigation
And I should see the object store's phase banner
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,11 @@ def click_save_and_continue
expect(page).to have_selector("a.govuk-header__link[href='#{content_block_manager.content_block_manager_root_path}']", text: "Dashboard")
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")
end

Then(/^I should still see the live edition on the homepage$/) do
within(".govuk-summary-card", text: @content_block.document.title) do
@content_block.details.keys.each do |key|
Expand Down

0 comments on commit 2037a38

Please sign in to comment.