🤔 What is random error
Unstable tests. When you run the feature spec, it sometimes goes to fail and sometimes go to success.
👍 1. Read the log and screenshot
omit.
👍 2. Run the unstable test for 100 times.
Of course, you can use binding.pry
100.times do
scenario 'unstable test' do
# test something
binding.pry if something.is_not_expected
end
end
👍 Other ways
- under developmnet
🔥 Problems
![n350071 image](https://res.cloudinary.com/practicaldev/image/fetch/s--pbzTu4Iv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://res.cloudinary.com/practicaldev/image/fetch/s--GyggfQgU--/c_fill%2Cf_auto%2Cfl_progressive%2Ch_150%2Cq_auto%2Cw_150/https://dev-to-uploads.s3.amazonaws.com/uploads/user/profile_image/72353/94a227c6-1417-46e0-9fa1-2d48ffadc37e.png)
[Capybara] find('input').set will have not done!
n350071🇯🇵 ・ Dec 17 '19 ・ 1 min read
#capybara
#rspec
#rails
Top comments (0)