[ML] Functional tests - stabilize and re-enable a11y tests (#118500)

This PR stabilizes the data frame analytics job row result link usage in tests and re-enables the a11y ML tests.
This commit is contained in:
Robert Oskamp 2021-11-15 17:14:02 +01:00 committed by GitHub
parent a0cf6d3708
commit 3768cc6de3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View file

@ -13,8 +13,7 @@ export default function ({ getService }: FtrProviderContext) {
const a11y = getService('a11y');
const ml = getService('ml');
// FLAKY https://github.com/elastic/kibana/issues/118417
describe.skip('ml', () => {
describe('ml', () => {
const esArchiver = getService('esArchiver');
before(async () => {

View file

@ -157,9 +157,13 @@ export function MachineLearningDataFrameAnalyticsTableProvider({ getService }: F
}
public async openResultsView(analyticsId: string) {
await this.assertJobRowViewButtonExists(analyticsId);
await testSubjects.click(this.rowSelector(analyticsId, 'mlAnalyticsJobViewButton'));
await testSubjects.existOrFail('mlPageDataFrameAnalyticsExploration', { timeout: 20 * 1000 });
await retry.tryForTime(20 * 1000, async () => {
await this.assertJobRowViewButtonExists(analyticsId);
await testSubjects.click(this.rowSelector(analyticsId, 'mlAnalyticsJobViewButton'));
await testSubjects.existOrFail('mlPageDataFrameAnalyticsExploration', {
timeout: 5 * 1000,
});
});
}
public async openMapView(analyticsId: string) {