Skip to content

Commit

Permalink
Fix flaky tests with sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Feb 14, 2025
1 parent 835b2ce commit fb37497
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/features/people_skill_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ def fill_out_row(skill, level, interest)
end

within row_selector do
sleep 0.3
find('input[type="range"]').set(level)
end

within row_selector do
id = find("[id$='star-label#{interest}']")[:for]
sleep 0.3
choose(id, allow_label_click: true)
end
end
Expand Down

0 comments on commit fb37497

Please sign in to comment.