Created
November 13, 2014 20:36
-
-
Save cohitre/c4a3c92f2e6aa37ee867 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('search date sort has two states', function() { | |
var objectPath = "#search-modal .results th.date .sortable"; | |
visit(Testing.MARKETPLACE_ROUTE) | |
.then(function() { | |
Testing.runSearch(''); | |
stubResults(); | |
}) | |
.checkElements({ | |
"#search-modal .results th.date .sortable.descending": 1 | |
}) | |
.then(function() { | |
$(objectPath).click(); | |
}) | |
.checkElements({ | |
"#search-modal .results th.date .sortable.ascending": 1 | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment