From b0e699899915a2a7c53993fe55cbed8f56e1ff3e Mon Sep 17 00:00:00 2001 From: Larry Gregory Date: Thu, 14 Jun 2018 10:01:45 -0400 Subject: [PATCH] [Flaky Test] Fixes flaky role test (#19899) Here's a fix for the latest flaky test @kobelb --- x-pack/test/functional/apps/security/management.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/test/functional/apps/security/management.js b/x-pack/test/functional/apps/security/management.js index b05e5f39098fb..d01d5e2b99d5d 100644 --- a/x-pack/test/functional/apps/security/management.js +++ b/x-pack/test/functional/apps/security/management.js @@ -136,6 +136,9 @@ export default function ({ getService, getPageObjects }) { }); it('Reserved roles are not editable', async () => { + // wait for role tab to finish loading from previous test + await PageObjects.header.waitUntilLoadingHasFinished(); + const allInputs = await find.allByCssSelector('input'); for (let i = 0; i < allInputs.length; i++) { const input = allInputs[i];