New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to check expected elements for section or page recursively #338
Comments
Sounds like a good idea for a new feature I agree. Just to clarify a few points / ideas.
#2 - How would you define the limit of recursiveness (Would it be infinite>?) #3 - Are you wanting to discuss this / implement this, the code you've mentioned seems ok, but obviously I'm not behind my terminal at the moment. EDIT: Needs a better name as well :) |
If I will run all_there_r? on this page it should check existence of: Also I'm think that it is not possible to check existence of elements in "sections", we can only check that this sections are present. But I can be wrong here.
P.S. I don't have any ideas of how to name this method :) Possibly we can improve existing "all_there?", and it will run recursively by default, will have arguments with recursive limit in it? |
Thanks for the updates. I've got some ideas about how to start with this. Will probably put something up in 3.1 in the next couple of weeks. |
I've got something which may land in a week or so (Spec refactor took a bit longer), which should allow for some small recursion to happen. Watch this space. |
I've got an interim piece of code for this. But it's not really doing anything yet. I'll get something better up on a branch for you to have a play with sometime in December. @faceless7171 |
I've got some initial work that will hit a 3.0.1 release that will lay the foundations for some of this. If you're interested in contributing at all let me know |
I've pushed up a branch with some of the boilerplate @ineverov which relates to this Feature Request. Check it out if you want. |
Hi @luke-hill I was wondering what ended up happening with your recursive |
https://github.com/natritmeyer/site_prism/tree/feature/all_there_recursion_struct - This doesn't actually recurse yet. But it does set all the boilerplate, all of the unit tests plus the additional logging / documentation |
An initial cut of this is now in master. |
Expected Behavior
It would be great to have ability to run method all_there? recursively in the specified section or page.
The solution can look something like this:
The text was updated successfully, but these errors were encountered: