Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add phase banner for content block manager #9757

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading