Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Sep 25, 2015
1 parent 6777f44 commit bdb29e7
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/javascripts/test/e2e/EditionViewSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,11 @@ describe('EditionView', function () {
browser.get(browser.baseUrl + '#/tags/edit/5');
});

it('should render as a choice field', function () {
$$('.ng-admin-field-published .ui-select-container')
.then(function(uiSelect) {
expect(uiSelect.length).toBe(1)
})
.then(function() {
return $$('.ng-admin-field-published .btn').first().click();
it('should render as a checkbox field', function () {
$$('.ng-admin-field-published input[type="checkbox"]')
.then(function(checkbox) {
expect(checkbox.length).toBe(1);
})
.then(function() {
return $$('.ng-admin-field-published .ui-select-choices-row');
})
.then(function(choices) {
expect(choices.length).toBe(3)
});
});
})

Expand Down

0 comments on commit bdb29e7

Please sign in to comment.