Skip to content

Commit

Permalink
[ML] Functional tests - stabilize job row assertion (#56595) (#57420)
Browse files Browse the repository at this point in the history
This PR makes assertion of the job row more robust against loading time issues during test execution.
  • Loading branch information
pheyos authored Feb 12, 2020
1 parent 9b3581f commit 20a3a14
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export function MachineLearningJobTableProvider({ getService }: FtrProviderConte
}

public async assertJobRowFields(jobId: string, expectedRow: object) {
await this.refreshJobList();
const rows = await this.parseJobTable();
const jobRow = rows.filter(row => row.id === jobId)[0];
expect(jobRow).to.eql(expectedRow);
Expand Down

0 comments on commit 20a3a14

Please sign in to comment.