Update spec after adding default pages

The spec was assuming there was only 1 custom page created in the
DB. With this change the spec will pass no matter how many  custom
pages there are in the DB.
This commit is contained in:
Julian Herrero
2019-03-04 19:41:17 +01:00
parent 87be6f302c
commit ddca825f9f

View File

@@ -147,7 +147,11 @@ feature "Cards" do
scenario "Create", :js do
visit admin_site_customization_pages_path
within "#site_customization_page_#{custom_page.id}" do
click_link "See Cards"
end
click_link "Create card"
fill_in "Title", with: "Card for a custom page"