Skip to content

[Due for payment 2025-11-19] [$250] Fix flaky ReportUtils β€Ί getReportActionActorAccountID testΒ #71586

Description

@github-actions

🚨 Failure Summary 🚨:

  • πŸ“‹ Job Name: test / test (job 1)
  • πŸ”§ Failure in Workflow: Process new code merged to main
  • πŸ”— Triggered by PR: PR Link
  • πŸ‘€ PR Author: @kstroz
  • 🀝 Merged by: @mountiny
  • πŸ› Error Message:
    failure: Process completed with exit code 1.
FAIL tests/unit/ReportUtilsTest.ts (167.791 s)
  ● ReportUtils β€Ί getReportActionActorAccountID β€Ί should return report manager account id if action is REPORTPREVIEW and report is not a policy expense chat

    expect(received).toEqual(expected) // deep equality

    Expected: 20
    Received: 10

      7157 |             };
      7158 |             const actorAccountID = getReportActionActorAccountID(reportAction, iouReport, report);
    > 7159 |             expect(actorAccountID).toEqual(20);
           |                                    ^
      7160 |         });
      7161 |
      7162 |         it('should return admin account id if action is SUBMITTED taken by an admin on behalf the submitter', () => {

      at Object.toEqual (tests/unit/ReportUtilsTest.ts:7159:36)

⚠️ Action Required ⚠️:

πŸ› οΈ A recent merge appears to have caused a failure in the job named test / test (job 1).
This issue has been automatically created and labeled with Workflow Failure for investigation.

πŸ‘€ Please look into the following:

  1. Why the PR caused the job to fail?
  2. Address any underlying issues.

πŸ› We appreciate your help in squashing this bug!

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021973046764328218376
  • Upwork Job ID: 1973046764328218376
  • Last Price Increase: 2025-11-19
  • Automatic offers:
    • nkdengineer | Contributor | 108957961
Issue OwnerCurrent Issue Owner: @mallenexpensify

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorWorkflow Failure

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions