Skip to content

Instantly share code, notes, and snippets.

@davidjgonzalez
Created September 20, 2018 20:55
Show Gist options
  • Save davidjgonzalez/f0dec6c61026f81b197eabc28048e1b5 to your computer and use it in GitHub Desktop.
Save davidjgonzalez/f0dec6c61026f81b197eabc28048e1b5 to your computer and use it in GitHub Desktop.
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