Skip to content

Commit

Permalink
replace sleep with capybara expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakmeth committed Feb 27, 2024
1 parent 0235d7c commit 6147f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/skills_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def fill_out_form
save_button.click
end
end
sleep(2)
expect(page).to have_css("div.row.border.border-top.table-light.tableform-hover.table-row", text: 'new Title', wait: 2)
edited_skill = Skill.where(title: 'new Title')[0]
expect(edited_skill.category.title).to eq('Linux-Engineering')
expect(edited_skill.category.parent.title).to eq('System-Engineering')
Expand Down

0 comments on commit 6147f7f

Please sign in to comment.