Skip to content

Commit 2dfae39

Browse files
author
Mike Taylor
committed
Issue #363 - Fix tests to account for now markup.
1 parent 87c739b commit 2dfae39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/functional/lib/issue-list.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define([
1919
return this.remote
2020
.setFindTimeout(intern.config.wc.pageLoadTimeout)
2121
.get(require.toUrl(url))
22-
.findByCssSelector('h2').getVisibleText()
22+
.findByCssSelector('h1').getVisibleText()
2323
.then(function (text) {
2424
assert.include(text, 'Issues', 'Page header displayed');
2525
})

tests/functional/lib/issues.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ define([
2222
.setFindTimeout(intern.config.wc.pageLoadTimeout)
2323
.get(require.toUrl(url(100)))
2424
.sleep(1000)
25-
.findByCssSelector('h2.Issue-title').getVisibleText()
25+
.findByCssSelector('h1.Issue-title').getVisibleText()
2626
.then(function (text) {
2727
assert.include(text, 'Issue 100:', 'Issue title displayed');
2828
})
@@ -64,7 +64,7 @@ define([
6464
.setFindTimeout(intern.config.wc.pageLoadTimeout)
6565
// TODO: uh, update this in the future
6666
.get(require.toUrl(url(999999)))
67-
.findByCssSelector('#pageerror h2').getVisibleText()
67+
.findByCssSelector('#pageerror h1').getVisibleText()
6868
.then(function (text) {
6969
assert.include(text, '(404)', 'We\'re at the 404.');
7070
});

0 commit comments

Comments
 (0)