Skip to content

A local-first personal finance app

Fix flaky mobile payees VRT test by waiting for navbar animation (#6699)

Matiss Janis Aboltins9289932af9e7
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.