mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(snapshot): updates for spec index
This commit is contained in:
@@ -100,8 +100,6 @@ module.exports = function(gulp, argv) {
|
||||
'--params.width=<%= params.width %>',
|
||||
'--params.height=<%= params.height %>',
|
||||
'--params.test_id=<%= params.test_id %>',
|
||||
'--params.platform_index=<%= params.platform_index %>',
|
||||
'--params.platform_count=<%= params.platform_count %>',
|
||||
].map(function(argument) {
|
||||
return _.template(argument, snapshotValues);
|
||||
});
|
||||
|
||||
@@ -82,7 +82,7 @@ var IonicSnapshot = function(options) {
|
||||
var specIdString = '[' + (spec.id+1) + '/' + self.testData.total_specs + ']';
|
||||
log(specIdString, spec.getFullName());
|
||||
|
||||
self.testData.spec_id = spec.id;
|
||||
self.testData.spec_index = spec.id;
|
||||
self.testData.description = spec.getFullName();
|
||||
self.testData.highest_mismatch = self.highestMismatch;
|
||||
self.testData.png_base64 = pngBase64;
|
||||
|
||||
@@ -2,3 +2,13 @@
|
||||
name: chooseOne
|
||||
component: ionRadio
|
||||
---
|
||||
|
||||
it('should check 3rd radio by clicking its label', function(){
|
||||
var ele = element.all(by.css('label.item-radio'));
|
||||
ele.get(2).click();
|
||||
});
|
||||
|
||||
it('should check 4th radio by clicking its label', function(){
|
||||
var ele = element.all(by.css('label.item-radio'));
|
||||
ele.get(3).click();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user