-
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
Issue 330 - Add tests for Hosts page #331
Conversation
3666f8f
to
2b0bff9
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.
Thanks for the PR. Please check the comments below:
tests/features/host_handling.feature
Outdated
Given I am logged in as "Administrator" | ||
Given I am on "hosts" page | ||
|
||
Scenario Outline: Add a new host |
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.
It would be nice to add more tests to check the different addition of new hosts (as they're sifferent ways/options to do so). I.e.:
- Partial + no checkbox selected (done ✅ )
- Complete (with full data) + no checkbox selected
- Complete (with full data) + 'Force' checkbox
- Partial + 'Generate OTP' / 'Suppress processing of membership attributes' checkbox
7032a03
to
138c120
Compare
Also I am very open to renaming things in this PR. I use "partial" entry a lot. Couldn't come up with anything better. I also use "modal" for describing some functions in common.ts, but that might not be entirely correct. Maybe it applies outside of modals? |
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.
Hello @mreynolds389 , thank you for your contribution, please see the in-line comments.
Also, when labels' "I type in the field {string} text {string}", ... from |
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.
As mentioned in the comments, there are some things that will need to be addressed later, however, I approve this PR.
Thank you for your contribution.
Add tests for adding/deleting hosts, and automember rebuild Since we don't know the host name I created "partial" functions for elements that "start with" a value, instead of searching for the entire value. Fixes: freeipa#330 Signed-off-by: Mark Reynolds <[email protected]>
279d478
to
50dbe32
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.
LGTM.
Add tests for adding/deleting hosts, and automember rebuild
Since we don't know the host name I created "partial" functions for elements that "start with" a value, instead of searching for the entire value.
Fixes: #330