test(snapshot): updates for spec index

This commit is contained in:
Adam Bradley
2014-06-09 11:27:10 -05:00
parent a5230749a7
commit 24497eb653
3 changed files with 11 additions and 3 deletions

View File

@@ -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);
});

View File

@@ -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;

View File

@@ -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();
});