Skip to content

Multiple e2e workflow tests are failing due to feedback documents being generated #10498

@dianabarsan

Description

@dianabarsan

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

No one assigned

    Labels

    FlakyIndicates a flaky or unreliable testTestingAffects how the code is testedType: Technical issueImprove something that users won't notice

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions