test_cases

Card Count Group Test Cases

Sr No.Case DescriptionDataExpected Output
1No extItemsextItems = ''Message will display 'No data to display!'
2Bad extItemsextItems = {
card:{
title: 'Head',
value: 20,
score: '200'
},..}
Message will display 'No data to display!'
3Good extItemsextItems = [{
title: '',
count:'',
score: '200'
},..]
Number of card = length of extItems array.
On click it gives the card item object.
9Css property without !important.cst-card-count-group-element-override{
margin-right : 10px
}
Default margin will apply
10Css property with !important.cst-card-count-group-element-override{
margin-right : 10px !important;
}
margin-right = 10px
11If extItems object's property is not label and
options.propLabel is not there
!options.propLabel or options.propLabel = ''Lable will not display
12If extItems object's property is not label and
options.propLabel is key value which is consider as label
extItems = [{
title:'',
value:'',
score: '200'
}]
options.propLabel = 'title'
It will work properly
13If extItems object's property is not count and
options.propCount is not there
!options.propCount or options.propCount = ''Count will not display
14If extItems object's property is not count and
options.propCount is key value which is consider as count
extItems = [{
title:1,
value:'poor',
score: '200'
}]
options.propCount = 'value'
count will display
13If extItems object's property is not totalCount and
options.propTotalCount is not there
!options.propTotalCount or options.propTotalCount = ''Deatail will not display
14If extItems object's property is not totalCount and
options.propTotalCount is key value which is consider as TotalCount
extItems = [{
title:1,
value:'poor',
score: '200'
}]
options.propTotalCount = 'score'
totalCount will display
15extDisabledextDisabled = trueClick functionality will not work
16Screen sizeLargedisplay from left to right
Smallwrap blocks