Skip to content

Commit

Permalink
fix flaky test on tsvb switch index patterns (#70811) (#71046)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
stratoula and elasticmachine authored Jul 8, 2020
1 parent 0f66a1d commit 139360c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/functional/apps/visualize/_tsvb_chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('visual builder', function describeIndexTests() {
beforeEach(async () => {
await security.testUser.setRoles(['kibana_admin', 'test_logstash_reader']);
await security.testUser.setRoles([
'kibana_admin',
'test_logstash_reader',
'kibana_sample_admin',
]);
await PageObjects.visualize.navigateToNewVisualization();
await PageObjects.visualize.clickVisualBuilder();
await PageObjects.visualBuilder.checkVisualBuilderIsPresent();
Expand Down Expand Up @@ -112,7 +116,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.visualBuilder.resetPage();
await PageObjects.visualBuilder.clickMetric();
await PageObjects.visualBuilder.checkMetricTabIsPresent();
await security.testUser.setRoles(['kibana_admin', 'kibana_sample_admin']);
});
after(async () => {
await security.testUser.restoreDefaults();
Expand Down

0 comments on commit 139360c

Please sign in to comment.