Skip to content

Commit

Permalink
test(snapshot): updates for spec index
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Jun 9, 2014
1 parent a523074 commit 24497eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 0 additions & 2 deletions config/gulp-tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion config/lib/ionic-snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 10 additions & 0 deletions demos/directive/radio/chooseOne/test.scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit 24497eb

Please sign in to comment.