Skip to content

Commit

Permalink
fix test number assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jun 13, 2016
1 parent 6b05bc0 commit c9228d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/tests/app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ describe('Routes tests', function() {
expect(element(by.model('route.path')).getAttribute('value')).toEqual('/test');
expect(element.all(by.model('config.active')).get(0).getAttribute('value')).toEqual('on');
expect(element.all(by.model('config.public')).get(0).getAttribute('value')).toEqual('on');
expect(element.all(by.model('config.response')).get(0).getAttribute('value')).toEqual('1');
expect(element.all(by.model('config.action')).get(0).getAttribute('value')).toEqual('0');
expect(element.all(by.model('config.response')).get(0).getAttribute('value')).toEqual('number:1');
expect(element.all(by.model('config.action')).get(0).getAttribute('value')).toEqual('number:3');

var responseOptions = element.all(by.options('schema.id as schema.name for schema in schemas'));
expect(responseOptions.get(3).getText()).toEqual('Foo-Schema');
Expand Down
2 changes: 1 addition & 1 deletion public/tests/app/scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('Scope tests', function() {

expect(element(by.model('scope.name')).getAttribute('value')).toEqual('test-scope');

var routes = element.all(by.model('route.allowedMethods.get'))
var routes = element.all(by.model('route.allowedMethods.get'));

expect(routes.get(0).getAttribute('checked')).toBeTruthy();
expect(routes.get(1).getAttribute('checked')).toBeTruthy();
Expand Down
2 changes: 1 addition & 1 deletion public/tests/app/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('User tests', function() {

browser.wait(EC.visibilityOf($('div.modal-body')), 5000);

expect(element(by.model('user.status')).getAttribute('value')).toEqual('1');
expect(element(by.model('user.status')).getAttribute('value')).toEqual('number:1');
expect(element(by.model('user.name')).getAttribute('value')).toEqual('test-user');

var scopes = element.all(by.model('user.scopes[$index]'));
Expand Down

0 comments on commit c9228d1

Please sign in to comment.