Skip to content

[Due for payment 2025-09-02] [$125] Fix flaky test UnreadIndicatorsTest #66037

@mountiny

Description

@mountiny

This tests is flaky on main, please, identify the RCA and try to identify the pattern that we could try to avoid in other places. Lets fix this same issue in other tests if present and propose if there is some guard we could put in place to avoid this.

  ● Unread Indicators › Do not display the new line indicator when tracking an expense on self DM while offline

    expect(received).toHaveLength(expected)

    Expected length: 0
    Received length: 1
    Received array:  [{"_fiber": [FiberNode]}]

      672 |         const newMessageLineIndicatorHintText = translateLocal('accessibilityHints.newMessageLineIndicator');
      673 |         const unreadIndicator = screen.queryAllByLabelText(newMessageLineIndicatorHintText);
    > 674 |         expect(unreadIndicator).toHaveLength(0);
          |                                 ^
      675 |     });
      676 |     it('Mark the chat as unread on clicking "Mark as unread" on an item in LHN when the last message of the chat was deleted by another user', async () => {
      677 |         await signInAndGetAppWithUnreadChat();

      at Object.toHaveLength (tests/ui/UnreadIndicatorsTest.tsx:674:33)
      at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)
      at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)
Issue OwnerCurrent Issue Owner: @abekkala

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 contributor

Type

No type
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