mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This PR makes assertions of the job row and analytics result views more robust against loading time issues during test execution.
This commit is contained in:
parent
7b0067fe6e
commit
27e58b5e94
2 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,7 @@ export function MachineLearningDataFrameAnalyticsTableProvider({ getService }: F
|
|||
public async openResultsView() {
|
||||
await this.assertJobViewButtonExists();
|
||||
await testSubjects.click('mlAnalyticsJobViewButton');
|
||||
await testSubjects.existOrFail('mlPageDataFrameAnalyticsExploration', { timeout: 5000 });
|
||||
await testSubjects.existOrFail('mlPageDataFrameAnalyticsExploration', { timeout: 20 * 1000 });
|
||||
}
|
||||
|
||||
public async filterWithSearchString(filter: string) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue