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];