mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user