updates texts on specs
This commit is contained in:
@@ -88,7 +88,7 @@ feature "Admin custom content blocks" do
|
||||
expect(page).to have_content("#{block.name} (#{block.locale})")
|
||||
expect(page).to have_content(block.body)
|
||||
|
||||
click_button "Delete"
|
||||
click_button "Delete block"
|
||||
|
||||
expect(page).to_not have_content("#{block.name} (#{block.locale})")
|
||||
expect(page).to_not have_content(block.body)
|
||||
@@ -98,7 +98,7 @@ feature "Admin custom content blocks" do
|
||||
block = create(:site_customization_content_block)
|
||||
visit edit_admin_site_customization_content_block_path(block)
|
||||
|
||||
click_button "Delete"
|
||||
click_button "Delete block"
|
||||
|
||||
expect(page).to_not have_content("#{block.name} (#{block.locale})")
|
||||
expect(page).to_not have_content(block.body)
|
||||
|
||||
@@ -62,7 +62,7 @@ feature "Admin custom pages" do
|
||||
custom_page = create(:site_customization_page, title: "An example custom page")
|
||||
visit edit_admin_site_customization_page_path(custom_page)
|
||||
|
||||
click_button "Delete"
|
||||
click_button "Delete page"
|
||||
|
||||
expect(page).to_not have_content("An example custom page")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user