Created
September 20, 2018 20:55
-
-
Save davidjgonzalez/f0dec6c61026f81b197eabc28048e1b5 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
import Page from '../page/Page.component' | |
import Sort from './Sort.component'; | |
let assert = require('assert'); | |
describe('on reload of search page, with sort related query params, the search sort component', () => { | |
let page = new Page(), | |
sort = new Sort(); | |
it('should set the sort by label and sort direction appropriately when mis-match request parameters are passed', function () { | |
browser.url(page.path + page.getQueryString({ | |
'orderby': 'invalid', | |
'orderby.sort': 'invalid' | |
})); | |
assert.equal(sort.sortByLabel.getText() , 'Unknown!!!'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment