-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
Example run: https://github.com/medic/cht-core/actions/runs/19735777380
Multiple tests have failed here, and all with the same feedback doc error:
"arguments": [
"\"Error selecting contact\"",
"\"TypeError: Cannot read properties of undefined (reading 'muted')\\n at Object.appliesIf (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:165)\\n at r (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:884)\\n at t.exports (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:1761)\\n at eval (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:4795)\\n at eval (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:4870)\\n at _ (https://localhost/main.js:1:1167992)\\n at Array.forEach (<anonymous>)\\n at Object.getEmissionsFor (https://localhost/main.js:1:1169136)\\n at u.exports (https://localhost/main.js:1:1166268)\\n at https://localhost/main.js:1:1165170\""
],
"info": {
"message": "Cannot read properties of undefined (reading 'muted')",
"stack": "TypeError: Cannot read properties of undefined (reading 'muted')\n at Object.appliesIf (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:165)\n at r (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:884)\n at t.exports (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:1761)\n at eval (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:4795)\n at eval (eval at initialize (https://localhost/main.js:1:1167910), <anonymous>:3:4870)\n at _ (https://localhost/main.js:1:1167992)\n at Array.forEach (<anonymous>)\n at Object.getEmissionsFor (https://localhost/main.js:1:1169136)\n at u.exports (https://localhost/main.js:1:1166268)\n at https://localhost/main.js:1:1165170"
},
It looks like there some task (or target) that tries to access the muted property of a contact in the appliesIf function without nullchecking the original document.
Describe the improvement you'd like
Fix the config.
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