Bug 1500475 - Modify browser_jsterm_content_defined_helpers.js to find cause of intermittent; r=bgrins.

The log we currently receive are not really
actionable (we are using ok, so we don't know
what the received value actually is). Switching
to is should give us what the value is when the
test fails, which might help us fix the failure.

Differential Revision: https://phabricator.services.mozilla.com/D9270

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2018-10-19 16:12:13 +00:00
Родитель addcac2c93
Коммит 9396d88360
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -55,7 +55,8 @@ async function performTests() {
is(autocompleteItems.length, 1,
`There's no duplicated "${helper}" item in the autocomplete popup`);
const msg = await jsterm.execute(`${helper}()`);
ok(msg.textContent.includes(PREFIX + helper), `output is correct for ${helper}()`);
is(msg.textContent.trim(), `"${PREFIX + helper}"`,
`output is correct for ${helper}()`);
}
}