umts / incidents

Operator incident report tracking for the Springfield and Valley Area Transit Companies
MIT License
1 stars 1 forks source link

Add rspec-retry #487

Closed werebus closed 2 months ago

werebus commented 2 months ago

You know, I don't love "just try it again" as a solution but I also really prefer that our CI passes. And pretty reliably, the Selenium-driven failures don't happen on a second run.

Here's what the output looks like:

...............................................
1st Try error in ./spec/system/drivers/special_incident_fields_spec.rb:116:
Unable to find modal dialog

RSpec::Retry: 2nd try ./spec/system/drivers/special_incident_fields_spec.rb:116
...................................................................................
1st Try error in ./spec/system/staff/viewing_incidents_spec.rb:124:
unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"}
  (Session info: chrome=128.0.6613.137)

RSpec::Retry: 2nd try ./spec/system/staff/viewing_incidents_spec.rb:124
......................................................