-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[6.8] [ML] Functional tests - Basic page navigation (#66431)
This PR adds basic page navigation tests for the ML app in the 6.8 branch.
- Loading branch information
Showing
19 changed files
with
192 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,6 @@ export const ExplorerNoJobsFound = () => ( | |
/> | ||
</EuiButton> | ||
} | ||
data-test-subj="mlNoJobsFound" | ||
/> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { KibanaFunctionalTestDefaultProviders } from '../../../types/providers'; | ||
|
||
// tslint:disable:no-default-export | ||
export default function({ loadTestFile }: KibanaFunctionalTestDefaultProviders) { | ||
describe('machine learning', function() { | ||
this.tags(['ciGroup3', 'mlqa']); | ||
|
||
loadTestFile(require.resolve('./pages')); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { KibanaFunctionalTestDefaultProviders } from '../../../types/providers'; | ||
|
||
// tslint:disable:no-default-export | ||
export default function({ getService }: KibanaFunctionalTestDefaultProviders) { | ||
const esArchiver = getService('esArchiver'); | ||
const ml = getService('ml'); | ||
|
||
describe('page navigation', () => { | ||
before(async () => { | ||
await esArchiver.load('empty_kibana'); | ||
}); | ||
|
||
after(async () => { | ||
await esArchiver.unload('empty_kibana'); | ||
}); | ||
|
||
it('loads the home page', async () => { | ||
await ml.navigateTo(); | ||
}); | ||
|
||
it('loads the job management page', async () => { | ||
await ml.navigateToJobManagement(); | ||
await ml.assertJobStatsBarExists(); | ||
await ml.assertJobTableExists(); | ||
await ml.assertCreateNewJobButtonExists(); | ||
}); | ||
|
||
it('loads the anomaly explorer page', async () => { | ||
await ml.navigateToAnomalyExplorert(); | ||
await ml.assertAnomalyExplorerEmptyListMessageExists(); | ||
}); | ||
|
||
it('loads the single metric viewer page', async () => { | ||
await ml.navigateToSingleMetricViewer(); | ||
await ml.assertSingleMetricViewerEmptyListMessageExsist(); | ||
}); | ||
|
||
it('loads the data visualizer page', async () => { | ||
await ml.navigateToDataVisualizer(); | ||
await ml.assertDataVisualizerImportDataCardExists(); | ||
await ml.assertDataVisualizerIndexDataCardExists(); | ||
}); | ||
|
||
it('loads the settings page', async () => { | ||
await ml.navigateToSettings(); | ||
await ml.assertSettingsCalendarLinkExists(); | ||
await ml.assertSettingsFilterlistLinkExists(); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.