[AAE-485] - empty value for CardView Int Item e2e test (#5240)

* AAE-485 - empty value e2e test

* Updated test with try-catch block for AAE-485 / C321535
This commit is contained in:
AleAb25
2019-11-13 19:44:05 +00:00
committed by Denys Vuika
parent cce4524274
commit 6f42e0ea0e
2 changed files with 22 additions and 1 deletions

View File

@@ -218,4 +218,18 @@ export class CardViewComponentPage {
}
}
async isErrorNotDisplayed(): Promise<boolean> {
const errorElement: ElementFinder = element(by.css('mat-error[data-automation-id="card-textitem-error-int"]'));
try {
await BrowserVisibility.waitUntilElementIsNotVisible(errorElement);
return true;
} catch {
return false;
}
}
async clearIntField(): Promise<void> {
await this.intField.clear();
}
}