aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/test-utils
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-03-19 12:15:19 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-20 07:51:05 +0000
commit091edfdac90f66d91caff1b93131f99ba74f9aeb (patch)
treea6a24fc4a295b7f804aeb2a2211e58b38bbf922a /openecomp-ui/test-utils
parentfefa3e408f77289594e47edc878d1bee61fca90b (diff)
ui support for archive items
Issue-ID: SDC-1088 Change-Id: I836e4896a8ec6bb065f9d2571f514916ccf6759f Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/test-utils')
-rw-r--r--openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js b/openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js
index 8301a277cf..ee94ba988d 100644
--- a/openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js
+++ b/openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js
@@ -29,6 +29,7 @@ export const ItemPermissionFactory = new Factory()
.attrs({
'isDirty': false,
'isOutOfSync': false,
+ 'isArchived': false,
'isUpToDate': true
});
@@ -52,7 +53,8 @@ Factory.define('InitializedCurrentScreenFactory')
.option('isCertified', false)
.option('inMerge', false)
.option('isCollaborator', true)
- .option('isReadOnlyMode', ['isCertified', 'inMerge', 'isCollaborator'], (isCertified, inMerge, isCollaborator) =>
+ .option('isArchived', false)
+ .option('isReadOnlyMode', ['isCertified', 'inMerge', 'isCollaborator', 'isArchived'], (isCertified, inMerge, isCollaborator, isArchived) =>
isCertified || inMerge || !isCollaborator
)
.attr('itemPermission', ['isCertified', 'inMerge', 'isCollaborator'], (isCertified, inMerge, isCollaborator) =>
@@ -71,9 +73,9 @@ Factory.define('CurrentScreenFactory')
.option('isUpToDate', true)
.option('version', ['isCertified'], (isCertified) => VersionFactory.build({isCertified}))
.attr('itemPermission', [
- 'isCertified', 'inMerge', 'isCollaborator', 'isDirty', 'isOutOfSync', 'isUpToDate'
- ], (isCertified, inMerge, isCollaborator, isDirty, isOutOfSync, isUpToDate) =>
- ItemPermissionFactory.build({isCollaborator, isCertified, inMerge, isDirty, isOutOfSync, isUpToDate})
+ 'isCertified', 'inMerge', 'isCollaborator', 'isDirty', 'isOutOfSync', 'isUpToDate', 'isArchived'
+ ], (isCertified, inMerge, isCollaborator, isDirty, isOutOfSync, isUpToDate, isArchived) =>
+ ItemPermissionFactory.build({isCollaborator, isCertified, inMerge, isDirty, isOutOfSync, isUpToDate, isArchived})
)
.attr('props', ['isReadOnlyMode', 'version'], (isReadOnlyMode, version) => {
return {isReadOnlyMode, version};