-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: convenience method expectAllExist() for checking if multiple elements are detected (#APD-483) #751
Conversation
…lements are detected (#APD-483)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all some likes:
- Test suites
- In code documentation very thorough
But I think the api and code is really complex for what it tries to achieve... Not sure if I am to review the api here, too, though. But I think we should have a quick call in order not to go back and forth because I think I may be lacking context.
…in expectExistence() (#APD-483)
@adi-wan-askui Thanks for the help with improving the API and the Code ❤️ . I refactored to use I struggled to not use |
32593b9
to
3c117dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done switching to reduce :)!
To your question: You can replace the typecasts by signature overloads. I provided an example to you inside a commit to this branch. You can replace the other typecast the same way.
Left some last ideas for improving the naming, usage of switch statements and documenting parameters.
…to expectAllExist; (#APD-483)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done :)
Adds the convenience method
It takes an array of elements in the form of
ExpectExistenceInputParameter
:and returns
ExpectExistenceReturnValue
with a propertyeverythingExists
and the the Input-Parameter withexists
that shows if the element was found:Comprehensive tests can be found in our QA-Repository: https://github.com/askui/askui-qa-system-test/pull/2