-
Notifications
You must be signed in to change notification settings - Fork 66
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
subscription page search field ui selector update #1702
base: master
Are you sure you want to change the base?
subscription page search field ui selector update #1702
Conversation
|
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.
Looks good. Could potentially use 'aria-label' as a (possibly) more durable locator, but I don't feel strongly about this.
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.
Upon further review, the actual solution to this problem is to change from using "SearchableViewMixin" and having the custom search logic to simply using PF4SearchableViewMixin.
This will also make test changes not necessary, at least in the case of one of the tests you are changing.
|
PRT Result
|
Local test execution result :
|
@@ -115,7 +115,7 @@ def fill(self, values): | |||
self.close() | |||
|
|||
|
|||
class SubscriptionListView(BaseLoggedInView, SubscriptionSearchableViewMixin): |
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.
Why did we change SubscriptionSearchableViewMixin
to SearchableViewMixinPF4
?
Since you have already updated SubscriptionSearchableViewMixin
above we can keep this as it is. wdyt?
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.
Yes, class SubscriptionSearchableViewMixin
alread imports SearchableViewMixinPF4
in class definition.
Testing changes locally.
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.
Running PRT comment on robottelo PR SatelliteQE/robottelo#17382 to test changes in CI.
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.
The changes are not reflected here. Can you please update it.
3d579b2
to
719fb6b
Compare
trigger: test-robottelo |
PRT Result
|
… in class SearchableViewMixinPF4
|
|
PRT Result
|
PRT Result
|
@@ -115,7 +115,7 @@ def fill(self, values): | |||
self.close() | |||
|
|||
|
|||
class SubscriptionListView(BaseLoggedInView, SubscriptionSearchableViewMixin): | |||
class SubscriptionListView(BaseLoggedInView, SearchableViewMixinPF4): |
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.
class SubscriptionListView(BaseLoggedInView, SearchableViewMixinPF4): | |
class SubscriptionListView(BaseLoggedInView, SubscriptionSearchableViewMixin): |
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.
suggested changes didn't work locally as well as in CI, that's why I revert back to previous changes
Problem Statement
test_positive_access_with_non_admin_user_with_manifest
was failing due to ErrorTypeError: 'NoneType' object is not subscriptable
search_field
from airgun viewSubscriptionSearch
need to be updatedSolution
Update
search_field
with expected locator.Robottelo PR
SatelliteQE/robottelo#17382