Comments (4)
This sound totally reasonable.
Then again, there is d8b9619, which specifically reverts the exact change you're proposing.
I cannot remember why we had to revert it. I assume it must have something to do with nested patiently blocks, but can't put my finger on it.
Maybe a safeish way would be to change the mechanism to always allow "one more try" after time is up (instead of guaranteeing 2 tries in total)? Of course that might result in slower failures.
from spreewald.
Or, alternatively, we could change it so that
- patiently records the time when the block started
- patiently will retry as long as that timestamp is before the default_wait_time
@niklas-hasselmeyer do you agree that this would solve your usecase?
from spreewald.
I can imagine that the reason behind d8b9619 was to allow Capybara's own retry feature, which can speed up tests.
When I wrote the issue, I thought that the best fix was to make the two timeouts (Spreewald's and Capybara's) independent. Both of your suggestions sound reasonable, too, and would solve my issue.
from spreewald.
Fix is released as version 4.5.0.
from spreewald.
Related Issues (20)
- HTML email's text representation includes too many linebreaks HOT 4
- Mail steps: Spreewald >2.9 does not work reliably without premailer-gem
- Email steps: I can't check for a specific sentence within the body if it doesn't start a new line HOT 1
- "an email should have been sent with" step behaves incorrectly when not specifying headers HOT 1
- Poll: Integrate iframe-steps into spreewald HOT 2
- 3.0.3 comes with a regression for the e-mail step HOT 3
- Add patiently block to /^the "([^\"]*)" (field|button|checkbox|radio button) should( not)? be disabled$/
- Rework "field should have the error" and "field should( not)? have an error " steps HOT 1
- Multiple invocations of "console" step will fail
- Broken step: Show me the email
- No matches with the "I follow the link in the email" step
- Better error message for "I follow the link in the email"
- Force decoupled tabs
- Step `I should see 'some string with "double" quotes'` should allow negation
- Installation instructions are confusing to newcomers HOT 1
- Deprecation warning with Rails 7.0
- Support for Ruby 3 for step `/^(.*) within (.*[^:])$/` HOT 1
- Mails: Strip whitespace from the beginning of lines HOT 3
- Ruby 3.0 support for `When /^(?:|I )attach the file "([^"]*)" to "([^"]*)"$/` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spreewald.