Skip to content

Commit a122209

Browse files
author
Mike Taylor
committed
Issue #449 - Tests for g to GitHub issues functionality
1 parent 93cb165 commit a122209

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/functional/lib/issue-list.js

+15
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,21 @@ define([
147147
.then(function (className) {
148148
assert.notInclude(className, 'is-active', 'Searching should clear all filters');
149149
});
150+
},
151+
152+
'pressing g goes to github issues': function() {
153+
return this.remote
154+
.setFindTimeout(intern.config.wc.pageLoadTimeout)
155+
.get(require.toUrl(url))
156+
.findByCssSelector('body').click()
157+
.type('g')
158+
.end()
159+
// look for the issues container on github.com/foo/bar/issues
160+
.findByCssSelector('.repo-container .issues-listing').isDisplayed()
161+
.then(function (isDisplayed) {
162+
assert.equal(isDisplayed, true, 'We\'re at GitHub now.');
163+
})
164+
.end();
150165
}
151166
});
152167
});

0 commit comments

Comments
 (0)