From 139360cd5e300eb29ccdb01527ad4938cba629e4 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Wed, 8 Jul 2020 11:55:41 +0300 Subject: [PATCH] fix flaky test on tsvb switch index patterns (#70811) (#71046) Co-authored-by: Elastic Machine Co-authored-by: Elastic Machine --- test/functional/apps/visualize/_tsvb_chart.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/functional/apps/visualize/_tsvb_chart.ts b/test/functional/apps/visualize/_tsvb_chart.ts index 6b69fa1e8c1d1..0cfff031d4576 100644 --- a/test/functional/apps/visualize/_tsvb_chart.ts +++ b/test/functional/apps/visualize/_tsvb_chart.ts @@ -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(); @@ -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();