Skip to content

Commit

Permalink
[Flaky test] Application Usage: Wait for chrome to visible (#109405) (#…
Browse files Browse the repository at this point in the history
…109600)

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
  • Loading branch information
kibanamachine and afharo authored Aug 23, 2021
1 parent f4f5a70 commit 171f655
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const browser = getService('browser');

it('keys in the schema match the registered application IDs', async () => {
await common.navigateToApp('home'); // Navigate to Home to make sure all the appIds are loaded
await common.navigateToApp('home'); // Navigate to Home
await common.isChromeVisible(); // Make sure the page is fully loaded
const appIds = await browser.execute(() => window.__applicationIds__);
if (!appIds || !Array.isArray(appIds)) {
throw new Error(
'Failed to retrieve all the existing applications in Kibana. Did it fail to boot or to navigate to home?'
);
}
try {
expect(Object.keys(applicationUsageSchema).sort()).to.eql(appIds.sort());
} catch (err) {
Expand Down

0 comments on commit 171f655

Please sign in to comment.