Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromemacias committed May 13, 2015
1 parent 9bae51f commit 9201c70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/javascripts/test/e2e/filterViewSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ describe('Global filter', function () {
});

it('should filter on reference', function () {
// Filter on post_id '3'
$$('.filters .filter select option[value="3"]').click();
// Filter on post_id '3' (Perspiciatis adipisci vero qui ipsam iure porro)
$$('.filters .filter select option[value="9"]').click();
$$('.filters button[type="submit"]').click();
$$('.grid tr td:nth-child(4)').then(function (tdElements) {
expect(tdElements.length).toBe(2);
Expand All @@ -63,8 +63,8 @@ describe('Global filter', function () {
});

it('should update the pagination total', function () {
// Filter on post id '3'
$$('.filters .filter select option[value="3"]').click();
// Filter on post id '3' (Perspiciatis adipisci vero qui ipsam iure porro)
$$('.filters .filter select option[value="9"]').click();
$$('.filters button[type="submit"]').click();
$$('ma-datagrid-pagination .total').then(function (totalElements) {
expect(totalElements[0].getText()).toBe('1 - 2 on 2');
Expand Down

0 comments on commit 9201c70

Please sign in to comment.