From 9289932af9e7cbdeb7289cb3cec07385d5e449dd Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Sun, 18 Jan 2026 19:10:35 +0100 Subject: [PATCH] Fix flaky mobile payees VRT test by waiting for navbar animation (#6699) * Fix flaky mobile payees VRT test by waiting for navbar animation to complete Add wait timeout after dragNavbarDown() to ensure react-spring animation finishes before screenshots are taken. * Add release notes for reducing payees e2e test flakiness * Fix release note formatting: use sentence case and add period Co-authored-by: matiss --------- Co-authored-by: Cursor Agent --- .../desktop-client/e2e/page-models/mobile-navigation.ts | 4 ++++ upcoming-release-notes/6699.md | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 upcoming-release-notes/6699.md diff --git a/packages/desktop-client/e2e/page-models/mobile-navigation.ts b/packages/desktop-client/e2e/page-models/mobile-navigation.ts index d6c5c9a83c..f30ba3a46b 100644 --- a/packages/desktop-client/e2e/page-models/mobile-navigation.ts +++ b/packages/desktop-client/e2e/page-models/mobile-navigation.ts @@ -90,6 +90,10 @@ export class MobileNavigation { y: boundingBox.height / NAVBAR_ROWS, }, }); + + // Wait for the react-spring animation to complete before taking screenshots. + // The animation typically takes a few hundred milliseconds to finish. + await this.page.waitForTimeout(500); } async hasNavbarState(...states: string[]) { diff --git a/upcoming-release-notes/6699.md b/upcoming-release-notes/6699.md new file mode 100644 index 0000000000..505f0e7234 --- /dev/null +++ b/upcoming-release-notes/6699.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [MatissJanis] +--- + +Reduce payees E2E test flakiness.