[AAE-1839] Card View E2E (#5472)

This commit is contained in:
dhrn
2020-02-12 21:03:15 +05:30
committed by GitHub
parent 498bc6032a
commit 281b75b6bf
2 changed files with 35 additions and 0 deletions

View File

@@ -286,6 +286,19 @@ describe('CardView Component', () => {
});
it('[C306895] Should display the form field as editable and clickable depending on the \'Editable\' toggle mode.', async () => {
const message = 'clickable updated';
await cardViewPageComponent.clickOnResetButton();
await expect(await cardViewPageComponent.getClickableValue()).toContain('click here');
await cardViewPageComponent.updateClickableField(message);
await expect(await cardViewPageComponent.hasCardViewConsoleLog(message)).toContain(`[This is clickable ] - ${message}`);
await cardViewPageComponent.clickOnResetButton();
await cardViewPageComponent.updateClickableField('');
await expect(await cardViewPageComponent.hasCardViewConsoleLog('[This is clickable ] -' )).toContain('[This is clickable ] -');
});
it('[C279936] Should not be possible edit any parameter when editable property is false', async () => {
await cardViewPageComponent.disableEdit();