test_cases
Card Count Group Test Cases
Sr No. | Case Description | Data | Expected Output |
---|---|---|---|
1 | No extItems | extItems = '' | Message will display 'No data to display!' |
2 | Bad extItems | extItems = { card:{ title: 'Head', value: 20, score: '200' },..} | Message will display 'No data to display!' |
3 | Good extItems | extItems = [{ title: '', count:'', score: '200' },..] | Number of card = length of extItems array. On click it gives the card item object. |
9 | Css property without !important | .cst-card-count-group-element-override{ margin-right : 10px } | Default margin will apply |
10 | Css property with !important | .cst-card-count-group-element-override{ margin-right : 10px !important; } | margin-right = 10px |
11 | If extItems object's property is not label and options.propLabel is not there | !options.propLabel or options.propLabel = '' | Lable will not display |
12 | If 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 |
13 | If extItems object's property is not count and options.propCount is not there | !options.propCount or options.propCount = '' | Count will not display |
14 | If 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 |
13 | If extItems object's property is not totalCount and options.propTotalCount is not there | !options.propTotalCount or options.propTotalCount = '' | Deatail will not display |
14 | If 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 |
15 | extDisabled | extDisabled = true | Click functionality will not work |
16 | Screen size | Large | display from left to right |
Small | wrap blocks |