[ML] Functional tests - stabilize saved search tests (#59652)

This PR stabilizes the saved search functional UI tests by adding a retry to navigateToApp('ml')
This commit is contained in:
Robert Oskamp 2020-03-10 18:10:59 +01:00 committed by GitHub
parent 1b0d1f1c51
commit 8bc051ac49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -271,8 +271,7 @@ export default function({ getService }: FtrProviderContext) {
},
];
// test failures, see #59354
describe.skip('saved search', function() {
describe('saved search', function() {
this.tags(['smoke', 'mlqa']);
before(async () => {
await esArchiver.load('ml/farequote');

View file

@ -17,7 +17,10 @@ export function MachineLearningNavigationProvider({
return {
async navigateToMl() {
return await PageObjects.common.navigateToApp('ml');
await retry.tryForTime(60 * 1000, async () => {
await PageObjects.common.navigateToApp('ml');
await testSubjects.existOrFail('mlPageOverview', { timeout: 2000 });
});
},
async assertTabsExist(tabTypeSubject: string, areaSubjects: string[]) {