92 lines
2.9 KiB
TypeScript
92 lines
2.9 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { FtrProviderContext } from '../ftr_provider_context';
|
|
|
|
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|
const PageObjects = getPageObjects(['upgradeAssistant', 'common']);
|
|
const a11y = getService('a11y');
|
|
const testSubjects = getService('testSubjects');
|
|
const retry = getService('retry');
|
|
|
|
describe('Upgrade Assistant', () => {
|
|
before(async () => {
|
|
await PageObjects.upgradeAssistant.navigateToPage();
|
|
});
|
|
|
|
it('Coming soon prompt', async () => {
|
|
await retry.waitFor('Upgrade Assistant coming soon prompt to be visible', async () => {
|
|
return testSubjects.exists('comingSoonPrompt');
|
|
});
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
// These tests will be skipped until the last minor of the next major release
|
|
describe.skip('Upgrade Assistant content', () => {
|
|
it('Overview page', async () => {
|
|
await retry.waitFor('Upgrade Assistant overview page to be visible', async () => {
|
|
return testSubjects.exists('overviewPageContent');
|
|
});
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
it('Elasticsearch cluster deprecations', async () => {
|
|
await PageObjects.common.navigateToUrl(
|
|
'management',
|
|
'stack/upgrade_assistant/es_deprecations/cluster',
|
|
{
|
|
ensureCurrentUrl: false,
|
|
shouldLoginIfPrompted: false,
|
|
shouldUseHashForSubUrl: false,
|
|
}
|
|
);
|
|
|
|
await retry.waitFor('Cluster tab to be visible', async () => {
|
|
return testSubjects.exists('clusterTabContent');
|
|
});
|
|
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
it('Elasticsearch index deprecations', async () => {
|
|
await PageObjects.common.navigateToUrl(
|
|
'management',
|
|
'stack/upgrade_assistant/es_deprecations/indices',
|
|
{
|
|
ensureCurrentUrl: false,
|
|
shouldLoginIfPrompted: false,
|
|
shouldUseHashForSubUrl: false,
|
|
}
|
|
);
|
|
|
|
await retry.waitFor('Indices tab to be visible', async () => {
|
|
return testSubjects.exists('indexTabContent');
|
|
});
|
|
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
|
|
it('Kibana deprecations', async () => {
|
|
await PageObjects.common.navigateToUrl(
|
|
'management',
|
|
'stack/upgrade_assistant/kibana_deprecations',
|
|
{
|
|
ensureCurrentUrl: false,
|
|
shouldLoginIfPrompted: false,
|
|
shouldUseHashForSubUrl: false,
|
|
}
|
|
);
|
|
|
|
await retry.waitFor('Kibana deprecations to be visible', async () => {
|
|
return testSubjects.exists('kibanaDeprecationsContent');
|
|
});
|
|
|
|
await a11y.testAppSnapshot();
|
|
});
|
|
});
|
|
});
|
|
}
|