Skip to content

Commit

Permalink
update coding rules search test
Browse files Browse the repository at this point in the history
  • Loading branch information
stas-vilchik committed Feb 19, 2015
1 parent cde2f91 commit ccdf48e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ casper.test.begin('coding-rules-page-query-facet', 3, function (test) {
.then(function () {
test.assertSelectorContains('#coding-rules-total', '609');
casper.evaluate(function () {
jQuery('[data-property="q"] input').val('query').change();
jQuery('[data-property="q"] input').val('query');
jQuery('[data-property="q"] form').submit();
});
casper.waitForSelectorTextChange('#coding-rules-total');
})

.then(function () {
test.assertSelectorContains('#coding-rules-total', '4');
casper.evaluate(function () {
jQuery('[data-property="q"] input').val('').change();
jQuery('[data-property="q"] input').val('');
jQuery('[data-property="q"] form').submit();
});
casper.waitForSelectorTextChange('#coding-rules-total');
})
Expand Down

0 comments on commit ccdf48e

Please sign in to comment.