-
Notifications
You must be signed in to change notification settings - Fork 115
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
duplicate bookmark negative test fix #14232
Conversation
trigger: test-robottelo |
PRT Result
|
needs #14242 for full pass |
tests/foreman/ui/test_bookmarks.py
Outdated
# wontfix, but new style dialog raises error, both situations occur | ||
try: | ||
ui_lib.create_bookmark({'name': bookmark.name, 'query': query, 'public': True}) | ||
except (DisabledWidgetError, NoSuchElementException): |
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.
So which dialogue will be used? Shouldn't we expect one of them? Shouldn't we expect an exception depending on what dialogue is being used? This looks too vague.
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.
So which dialogue will be used?
@lhellebr Hm, I didn't find a way to easily establish that, from the airgun point of view, they are the same. The differentiator is the behavior when trying to save bookmark with existing name
Shouldn't we expect an exception depending on what dialogue is being used? This looks too vague.
In a way, I'm doing just that. If it doesn't raise, then I assume old style dialog and do additional checks to make sure duplicate stuff wasn't created.
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
1 similar comment
trigger: test-robottelo |
trigger: test-robottelo |
PRT Result
|
PRT Result
|
trigger: test-robottelo |
PRT Result
|
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.
We've discussed this personally and the way it is now looks good
(cherry picked from commit e44a553)
(cherry picked from commit e44a553)
(cherry picked from commit e44a553)
duplicate bookmark negative test fix (#14232) (cherry picked from commit e44a553) Co-authored-by: Peter Ondrejka <[email protected]>
duplicate bookmark negative test fix (#14232) (cherry picked from commit e44a553) Co-authored-by: Peter Ondrejka <[email protected]>
duplicate bookmark negative test fix (#14232) (cherry picked from commit e44a553) Co-authored-by: Peter Ondrejka <[email protected]>
Problem Statement
With SatelliteQE/airgun#1200 in, another problem uncovered in bookmarks. Trying to create a bookmark with already existing name doesn't raise exception in old style dialog (wontfix bz 1992652), it does so in the new style dialog (different one in stream than in 6.x runs). Affects ~20 tests
Solution
this pr attempts to cover all the cases