mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[MNT-22348] - Fixed visibility when complex cases are appling (#7176)
* [MNT-22348] - Fixed visibility when complex cases are appling * [MNT-22348] - Fixed lint errrors * [MNT-22461] Unit test for visibility condition behaviour for checkxox expression is added * fixed unit test for visibility condition * [MNT-22348] - Fixed wrong form definition * [MNT-22348] - Fixed wrong quote * [MNT-22348] - Fixed wrong form definition * [MNT-22348] - fixed form definition Co-authored-by: Ketevani Kvirikashvili <qqetikv@gmail.com>
This commit is contained in:
@@ -61,54 +61,6 @@ describe('WidgetVisibilityCloudService', () => {
|
||||
jasmine.Ajax.uninstall();
|
||||
});
|
||||
|
||||
describe('should be able to evaluate logic operations', () => {
|
||||
|
||||
it('using AND and return true', () => {
|
||||
booleanResult = service.evaluateLogicalOperation('and', true, true);
|
||||
expect(booleanResult).toBeTruthy();
|
||||
});
|
||||
|
||||
it('using AND and return false', () => {
|
||||
booleanResult = service.evaluateLogicalOperation('and', true, false);
|
||||
expect(booleanResult).toBeFalsy();
|
||||
});
|
||||
|
||||
it('using OR and return true', () => {
|
||||
booleanResult = service.evaluateLogicalOperation('or', true, false);
|
||||
expect(booleanResult).toBeTruthy();
|
||||
});
|
||||
|
||||
it('using OR and return false', () => {
|
||||
booleanResult = service.evaluateLogicalOperation('or', false, false);
|
||||
expect(booleanResult).toBeFalsy();
|
||||
});
|
||||
|
||||
it('using AND NOT and return true', () => {
|
||||
booleanResult = service.evaluateLogicalOperation('and-not', true, false);
|
||||
expect(booleanResult).toBeTruthy();
|
||||
});
|
||||
|
||||
it('using AND NOT and return false', () => {
|
||||
booleanResult = service.evaluateLogicalOperation('and-not', false, false);
|
||||
expect(booleanResult).toBeFalsy();
|
||||
});
|
||||
|
||||
it('using OR NOT and return true', () => {
|
||||
booleanResult = service.evaluateLogicalOperation('or-not', true, true);
|
||||
expect(booleanResult).toBeTruthy();
|
||||
});
|
||||
|
||||
it('using OR NOT and return false', () => {
|
||||
booleanResult = service.evaluateLogicalOperation('or-not', false, true);
|
||||
expect(booleanResult).toBeFalsy();
|
||||
});
|
||||
|
||||
it('should fail with invalid operation', () => {
|
||||
booleanResult = service.evaluateLogicalOperation(undefined, false, true);
|
||||
expect(booleanResult).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe('should be able to evaluate next condition operations', () => {
|
||||
|
||||
it('using == and return true', () => {
|
||||
|
Reference in New Issue
Block a user