Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 7072385

Browse files
committed
push back the old selection of the word candidate
1 parent c7072fd commit 7072385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/nightwatch/lib/inkPlayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function checkSmartGuide(browser, config, strokes, labels, component = '#editor'
172172
.getNumberOfSpans('#candidates', (nbCand) => {
173173
console.log('number of candidates= ' + nbCand.value);
174174
// a random candidate in the smartGuide
175-
const candIdx = Math.floor(1 + (Math.random() * (nbCand.value - 1)));
175+
const candIdx = Math.floor(Math.random() * nbCand.value );
176176
browser.getProperty('#cdt-' + candIdx, 'textContent', (cand) => {
177177
console.log(candIdx + 'th candidate selected: ' + cand.value.toString());
178178
browser

0 commit comments

Comments
 (0)