Skip to content

Commit

Permalink
[Discover] add permissions for flaky context test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaanj committed Aug 20, 2021
1 parent 91630c6 commit 77352fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/apps/context/_size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const TEST_STEP_SIZE = 2;

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const kibanaServer = getService('kibanaServer');
const security = getService('security');
const retry = getService('retry');
const docTable = getService('docTable');
const browser = getService('browser');
Expand All @@ -28,6 +29,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'context:step': `${TEST_STEP_SIZE}`,
});
await PageObjects.context.navigateTo(TEST_INDEX_PATTERN, TEST_ANCHOR_ID);
await security.testUser.setRoles(['kibana_admin', 'kibana_date_nanos']);
});

it('should default to the `context:defaultSize` setting', async function () {
Expand Down

0 comments on commit 77352fe

Please sign in to comment.