[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

@@ -157,7 +157,7 @@ describe('CardView Component', () => {
await expect(await cardViewPageComponent.getErrorInt()).toBe('Use an integer format');
});
it('[C279949] Should not be possible have an empty value', async () => {
it('[C279949] Should not be possible to have a space as a value', async () => {
await cardViewPageComponent.clickOnIntField();
await cardViewPageComponent.enterIntField(' ');
await cardViewPageComponent.clickOnIntSaveIcon();
@@ -165,6 +165,13 @@ describe('CardView Component', () => {
await expect(await cardViewPageComponent.getErrorInt()).toBe('Use an integer format');
});
it('[C321535] Should be able to delete the value and save the CardView Int Item', async () => {
await cardViewPageComponent.clickOnIntField();
await cardViewPageComponent.clearIntField();
await cardViewPageComponent.clickOnIntSaveIcon();
await expect(await cardViewPageComponent.isErrorNotDisplayed()).toBe(true, 'The CardView Int Item should accept an empty field, but the error message is still displayed');
});
it('[C279950] Should return an error when the value is > 2147483647', async () => {
await cardViewPageComponent.clickOnIntField();
await cardViewPageComponent.enterIntField('214748367');