Skip to content

Instantly share code, notes, and snippets.

@nexxos
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nexxos/8326f67f19490f113851 to your computer and use it in GitHub Desktop.
Save nexxos/8326f67f19490f113851 to your computer and use it in GitHub Desktop.
Dalek script for Tutsplus article, adapted for changed Github frontpage. Article: https://code.tutsplus.com/tutorials/google-chrome-hegemony--cms-21478
var url = 'https://github.com/';
module.exports = {
'should perform search in GitHub': function (test) {
test
.open(url)
// .type('#js-command-bar-field', 'dalek')
.type('body > div.wrapper > div.header.header-logged-out > div > div.site-search.js-site-search > form > input[type="text"]', 'dalek')
// .submit('#top_search_form')
.submit('.js-site-search-form')
.assert.text('.repolist h3 a', 'dalekjs/dalek', 'There is a link with label dalekjs')
.click('[href="/dalekjs/dalek"]')
.assert.text('.repository-description p', 'DalekJS Base framework', 'It is the right repository')
.done()
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment