Updates admin site customization specs
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<td><%= link_to "#{content_block.name} (#{content_block.locale})", edit_admin_site_customization_content_block_path(content_block) %></td>
|
||||
<td><%= content_block.body.html_safe %></td>
|
||||
<td>
|
||||
<%= button_to t("admin.site_customization.content_blocks.index.delete"),
|
||||
<%= link_to t("admin.site_customization.content_blocks.index.delete"),
|
||||
admin_site_customization_content_block_path(content_block),
|
||||
method: :delete, class: "button hollow alert" %>
|
||||
</td>
|
||||
|
||||
@@ -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