Skip to content

Commit dcd8d92

Browse files
committed
Unbreak tests
1 parent 5727191 commit dcd8d92

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/codelab.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
function verifySecondSelected(codelab) {
5656
assert.equal(codelab.selected, 1, 'selected');
5757
assert.equal(codelab.remaining, '3 min remaining', 'remaining');
58-
assert.match(codelab.$.countdown.textContent.trim(), /3 min/);
58+
var countdowns = codelab.root.querySelectorAll('.countdown');
59+
for (var i = 0, countdown; countdown = countdowns[i]; ++i) {
60+
assert.match(countdown.textContent.trim(), /3 min/);
61+
}
5962
assert.equal(location.hash, '#1', 'location.hash');
6063
assert.equal(codelab.$.toc.selected, 1, '$.toc.selected');
6164
assert(!codelab.querySelector('.prevbutton').disabled, 'prev fab is disabled');
@@ -193,7 +196,12 @@
193196
async.nextTick(function() {
194197
assert.equal(codelab.selected, 0, 'selected');
195198
assert.equal(codelab.remaining, '5 min remaining', 'remaining');
196-
assert.match(codelab.$.countdown.textContent.trim(), /5 min/);
199+
200+
var countdowns = codelab.root.querySelectorAll('.countdown');
201+
for (var i = 0, countdown; countdown = countdowns[i]; ++i) {
202+
assert.match(codelab.$.countdown.textContent.trim(), /5 min/);
203+
}
204+
197205
assert.equal(codelab.$.toc.selected, 0, '$.toc.selected');
198206
assert(location.hash === '#0' || location.hash === '', 'location.hash');
199207
assert(codelab.querySelector('.prevbutton').disabled, 'prev fab is not disabled');

0 commit comments

Comments
 (0)