-
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
Implement Table read with pagination #292
Implement Table read with pagination #292
Conversation
test output with role PR #290 and SatelliteQE/robottelo#6751
|
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.
Pending comments
@@ -1267,6 +1287,96 @@ def read(self): | |||
"return ace.edit('{0}').getValue();".format(self.ace_edit_id)) | |||
|
|||
|
|||
class Pagination(Widget): |
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.
I'm not so sure that's the right place for this widget. Patternfly defines a standard for paginator, so such widget should lie under widgetastic_patternfly and we should just import it. If satellite has slightly different locators - then original widget in widgetastic_patternfly, and on our end we should inherit and only update locators accordingly.
tested also with content view by creating 93 entities (and triggering all the buttons): def read_all(self, per_page=None):
view = self.navigate_to(self, 'All')
if per_page:
view.table.pagination.per_page.fill(per_page)
view.table.pagination.last_page()
view.table.pagination.previous_page()
return view.table.read() the tests passed as expected |
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.
ACK pending few comments
and please create issue for patternly library for paginator and link to that PR
created an issue at widgetastic.patternfly RedHatQE/widgetastic.patternfly#84 |
29c3f0d
to
1892ed2
Compare
@abalakh @oshtaier changes done
test katello entity class ContentViewEntity(BaseEntity):
def read_all(self, per_page=None):
view = self.navigate_to(self, 'All')
if per_page:
view.table.pagination.per_page.fill(per_page)
view.table.pagination.last_page()
view.table.pagination.previous_page()
return view.table.read() def test_content_view_read_all(session, module_org):
for _ in range(63):
entities.ContentView(organization=module_org).create()
with session:
values = session.contentview.read_all(per_page='25')
assert len(values) == 63
|
test output with regular tests
to test the pagination and read_all created some function and test:
test output