Fix broken e2e tests because of the lack of thrown error (#6180)

This commit is contained in:
Popovics András 2020-09-28 18:32:08 +02:00 committed by GitHub
parent 302482945c
commit 5ff3852c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,6 +267,8 @@ export class DataTableComponentPage {
if (retry < 3) { if (retry < 3) {
retry++; retry++;
await this.checkContentIsDisplayed(columnName, columnValue, retry); await this.checkContentIsDisplayed(columnName, columnValue, retry);
} else {
throw error;
} }
} }
} }
@ -281,6 +283,8 @@ export class DataTableComponentPage {
if (retry < 3) { if (retry < 3) {
retry++; retry++;
await this.checkContentIsNotDisplayed(columnName, columnValue, retry); await this.checkContentIsNotDisplayed(columnName, columnValue, retry);
} else {
throw error;
} }
} }
} }