Skip to content

Commit

Permalink
Increase page size for ILM functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed May 13, 2021
1 parent 8e7ff10 commit 4647483
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
return (await testSubjects.getVisibleText('sectionHeading')) === 'Index Lifecycle Policies';
});

await pageObjects.indexLifecycleManagement.increasePolicyListPageSize();

const allPolicies = await pageObjects.indexLifecycleManagement.getPolicyList();

const filteredPolicies = allPolicies.filter(function (policy) {
return policy.name === policyName;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ export function IndexLifecycleManagementPageProvider({ getService }: FtrProvider
await this.saveNewPolicy();
},

async increasePolicyListPageSize() {
await testSubjects.click('tablePaginationPopoverButton');
await testSubjects.click(`tablePagination-100-rows`);
},

async getPolicyList() {
const policies = await testSubjects.findAll('policyTableRow');
return mapAsync(policies, async (policy) => {
Expand Down

0 comments on commit 4647483

Please sign in to comment.