You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A recent change caused cht-form integration tests to fail, however there no information about why the test fails, because this is covered by callback style implementation details, where all failing tests report that done was called multiple times.
Expected behavior
Tests should report why they fail.
Logs
[chrome 131.0.6778.139 linux #0-18] Running: chrome (v131.0.6778.139) on linux
[chrome 131.0.6778.139 linux #0-18] Session ID: 300c11e4571772b9d03c96b42d06bbb1
[chrome 131.0.6778.139 linux #0-18]
[chrome 131.0.6778.139 linux #0-18] » /tests/integration/cht-form/default/undo-death-report.wdio-spec.js
[chrome 131.0.6778.139 linux #0-18] cht-form web component - Undo Death Report Form
[chrome 131.0.6778.139 linux #0-18] ✖ should submit an undo death report (5 retries)
[chrome 131.0.6778.139 linux #0-18]
[chrome 131.0.6778.139 linux #0-18] 7 failing (2.5s)
[chrome 131.0.6778.139 linux #0-18]
[chrome 131.0.6778.139 linux #0-18] 1) cht-form web component - Undo Death Report Form should submit an undo death report
[chrome 131.0.6778.139 linux #0-18] done() called multiple times in test <cht-form web component - Undo Death Report Form should submit an undo death report> of file /home/runner/work/cht-core/cht-core/tests/integration/cht-form/default/undo-death-report.wdio-spec.js
[chrome 131.0.6778.139 linux #0-18] Error: done() called multiple times in test <cht-form web component - Undo Death Report Form should submit an undo death report> of file /home/runner/work/cht-core/cht-core/tests/integration/cht-form/default/undo-death-report.wdio-spec.js
[chrome 131.0.6778.139 linux #0-18] at createMultipleDoneError (/home/runner/work/cht-core/cht-core/node_modules/mocha/lib/errors.js:428:13)
[chrome 131.0.6778.139 linux #0-18] at multiple (/home/runner/work/cht-core/cht-core/node_modules/mocha/lib/runnable.js:288:24)
[chrome 131.0.6778.139 linux #0-18] at done (/home/runner/work/cht-core/cht-core/node_modules/mocha/lib/runnable.js:299:14)
[chrome 131.0.6778.139 linux #0-18] at /home/runner/work/cht-core/cht-core/node_modules/mocha/lib/runnable.js:369:11
[chrome 131.0.6778.139 linux #0-18] at processTicksAndRejections (node:internal/process/task_queues:105:5)
This is caused by us forcing a test failure because there are browser logs here:
Describe the bug
A recent change caused cht-form integration tests to fail, however there no information about why the test fails, because this is covered by callback style implementation details, where all failing tests report that
done
was called multiple times.Example run: https://github.com/medic/cht-core/actions/runs/12637681217/job/35213197636?pr=9727
Expected behavior
Tests should report why they fail.
Logs
This is caused by us forcing a test failure because there are browser logs here:
cht-core/tests/integration/cht-form/wdio.conf.js
Line 67 in b5c91d9
The text was updated successfully, but these errors were encountered: