Updates admin site customization 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 block"
|
||||
click_link "Delete block"
|
||||
|
||||
expect(page).not_to have_content("#{block.name} (#{block.locale})")
|
||||
expect(page).not_to 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 block"
|
||||
click_link "Delete block"
|
||||
|
||||
expect(page).not_to have_content("#{block.name} (#{block.locale})")
|
||||
expect(page).not_to have_content(block.body)
|
||||
|
||||
@@ -63,7 +63,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 page"
|
||||
click_link "Delete page"
|
||||
|
||||
expect(page).not_to have_content("An example custom page")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user