Last active
August 29, 2015 14:05
-
-
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
This file contains hidden or 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
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