Skip to content

Commit

Permalink
fix test model selector
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jun 13, 2016
1 parent 1edf657 commit 6b05bc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public/tests/app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ describe('Routes tests', function() {
browser.wait(EC.visibilityOf($('div.modal-body')), 5000);

element(by.model('route.path')).sendKeys('/test');
element.all(by.model('method.active')).get(0).click();
element.all(by.model('method.public')).get(0).click();
element.all(by.model('config.active')).get(0).click();
element.all(by.model('config.public')).get(0).click();

var responseOptions = element.all(by.options('schema.id as schema.name for schema in schemas'));
expect(responseOptions.get(3).getText()).toEqual('');
Expand Down Expand Up @@ -55,10 +55,10 @@ describe('Routes tests', function() {
browser.wait(EC.visibilityOf($('div.modal-body')), 5000);

expect(element(by.model('route.path')).getAttribute('value')).toEqual('/test');
expect(element.all(by.model('method.active')).get(0).getAttribute('value')).toEqual('on');
expect(element.all(by.model('method.public')).get(0).getAttribute('value')).toEqual('on');
expect(element.all(by.model('method.response')).get(0).getAttribute('value')).toEqual('1');
expect(element.all(by.model('method.action')).get(0).getAttribute('value')).toEqual('0');
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');

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

0 comments on commit 6b05bc0

Please sign in to comment.