Skip to content

Commit

Permalink
Update title when editing
Browse files Browse the repository at this point in the history
  • Loading branch information
pezholio committed Dec 5, 2024
1 parent 98a0fa6 commit 6882670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def back_path

class Update < ContentBlockManager::ContentBlock::EditionForm
def title
"Change #{schema.name}"
"Edit #{schema.name}"
end

def url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def should_show_summary_list_for_email_address_content_block(document_title, ema
end

def should_show_edit_form_for_email_address_content_block(document_title, email_address)
expect(page).to have_content("Change Email address")
expect(page).to have_content("Edit Email address")
expect(page).to have_field("Title", with: document_title)
expect(page).to have_field("Email address", with: email_address)
expect(page).to have_content("Save and continue")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ContentBlockManager::ContentBlock::EditionFormTest < ActiveSupport::TestCa
end

it "sets the correct title" do
assert_equal "Change Email address", result.title
assert_equal "Edit Email address", result.title
end

it "sets the correct urls" do
Expand Down

0 comments on commit 6882670

Please sign in to comment.