-
-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Labels
FlakyIndicates a flaky or unreliable testIndicates a flaky or unreliable testTestingAffects how the code is testedAffects how the code is testedType: Technical issueImprove something that users won't noticeImprove something that users won't notice
Description
Describe the issue
This test sometimes creates a feedback document and throws this error:
0-4] Error in "Create user for contacts.user replace.for an offline user.creates new user for the first version of a contact to sync and conflicting replacements ignored"
Error: done() called multiple times in test <Create user for contacts user replace for an offline user creates new user for the first version of a contact to sync and conflicting replacements ignored> of file /home/runner/work/cht-core/cht-core/tests/e2e/default/transitions/create-user-for-contacts.replace-user.wdio-spec.js
at createMultipleDoneError (/home/runner/work/cht-core/cht-core/node_modules/@wdio/mocha-framework/node_modules/mocha/lib/errors.js:428:13)
at multiple (/home/runner/work/cht-core/cht-core/node_modules/@wdio/mocha-framework/node_modules/mocha/lib/runnable.js:288:24)
at done (/home/runner/work/cht-core/cht-core/node_modules/@wdio/mocha-framework/node_modules/mocha/lib/runnable.js:299:14)
at /home/runner/work/cht-core/cht-core/node_modules/@wdio/mocha-framework/node_modules/mocha/lib/runnable.js:369:11
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
[0-4] 2025-11-26T21:38:45.948Z ERROR webdriver: WebDriverError: invalid session id when running "elements" with method "POST" and args "{"using":"css selector","value":"mm-modal-layout"}"
[0-4] 2025-11-26T21:39:26.905Z ERROR webdriver: WebDriverError: invalid session id when running "elements" with method "POST" and args "{"using":"css selector","value":".enketo form #form-title"}"
[0-4] 2025-11-26T21:39:38.484Z ERROR webdriver: WebDriverError: invalid session id when running "elements" with method "POST" and args "{"using":"css selector","value":".enketo form #form-title"}"
[0-4] FAILED in chrome - file:///tests/e2e/default/transitions/create-user-for-contacts.replace-user.wdio-spec.js
The feedback document that I am seeing is this:
https://gist.github.com/dianabarsan/efbfd0440e22d07dcf9893eaf6a863af
With the main error being:
"arguments": [
"\"Error selecting contact\"",
"\"conflict\\n at 12084 (https://localhost/main.js:1:802839)\\n at a (https://localhost/runtime.js:1:143)\\n at 95554 (https://localhost/main.js:1:3189225)\\n at a (https://localhost/runtime.js:1:143)\\n at https://localhost/main.js:11:650457\\n at n (https://localhost/runtime.js:1:1119)\\n at https://localhost/main.js:1:55\""
],
"info": {
"message": "Document update conflict",
"stack": "conflict\n at 12084 (https://localhost/main.js:1:802839)\n at a (https://localhost/runtime.js:1:143)\n at 95554 (https://localhost/main.js:1:3189225)\n at a (https://localhost/runtime.js:1:143)\n at https://localhost/main.js:11:650457\n at n (https://localhost/runtime.js:1:1119)\n at https://localhost/main.js:1:55"
},
Describe the improvement you'd like
Stabilize the test
Describe alternatives you've considered
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FlakyIndicates a flaky or unreliable testIndicates a flaky or unreliable testTestingAffects how the code is testedAffects how the code is testedType: Technical issueImprove something that users won't noticeImprove something that users won't notice