Skip to content

Commit

Permalink
[ML] Functional tests - stabilize saved search tests (elastic#59652)
Browse files Browse the repository at this point in the history
This PR stabilizes the saved search functional UI tests by adding a retry to navigateToApp('ml')
  • Loading branch information
pheyos committed Mar 10, 2020
1 parent 91f8071 commit cbf271e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[]) {
Expand Down

0 comments on commit cbf271e

Please sign in to comment.