cucumber - All Capybara steps pass, but scenario fails -


I have a special flaky test. I sometimes fails it wisely and tells me which step is spoilt. But sometimes it fails in the scenario without failing any of the steps:

  Using the default profile ... .............. ........ ...... F Failure scenario: Features of cucumber / admin / staff_allocation. Feature: 43 # Scenario: Staff Allocation shows current data 1 (1 failed) 19 steps (19 passes) 0m6.173 s  

I suspected that the issue was "when" phase There was an allegation (opposite of "again"), but in my stages, I can not find any such address. Is there any other reason why the scenario will fail when it crosses all its stages?

Do you have any useful information from RSPC? Try using rspec - format to get some of your essential information

Try to experiment by putting 'sleep 5' in the last line of your scenario. It is possible that at the end of your trial you have a defective claim and when some scenario is completed and Capibara cleans it at the end.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -