Skip to content

Commit

Permalink
Fix flaky test in "refreshes the cache if sub_children change"
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Aug 24, 2018
1 parent 8064b24 commit f8150de
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pages/spec/features/refinery/admin/pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,19 @@ module Admin

it "refreshes the cache if sub_children change" do
expect(page).to have_content(location.title)
location.update(title: 'Las Vegas')
visit refinery.admin_pages_path
expect(page).to have_content(location.title)

find("#page_#{location.id} .edit_icon").click
fill_in "Title", with: 'Las Vegas'
click_button "Save"

expect(page).to have_content('Las Vegas')
end
end
end
end

describe "new/create" do
it "Creates a page", js:true do
it "Creates a page", js: true do
visit refinery.admin_pages_path

find('a', text: 'Add new page').click
Expand Down

0 comments on commit f8150de

Please sign in to comment.