Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flaky test] Application Usage: Wait for chrome to visible #109405

Merged
merged 4 commits into from
Aug 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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) {