From 8827169bfa886f58560fdc3e51708dd8ad0d34ac Mon Sep 17 00:00:00 2001
From: DJ Mountney <david@twkie.net>
Date: Thu, 7 Mar 2024 13:02:42 -0800
Subject: [PATCH] Fix flaky transfer e2e test (#2434)

* Fix flaky transfer e2e test

- If tests ran too fast, the transactions wouldn't finish rendering
  before the select of the transactions was attempted.

* Add release note
---
 packages/desktop-client/e2e/accounts.test.js | 2 ++
 upcoming-release-notes/2434.md               | 6 ++++++
 2 files changed, 8 insertions(+)
 create mode 100644 upcoming-release-notes/2434.md

diff --git a/packages/desktop-client/e2e/accounts.test.js b/packages/desktop-client/e2e/accounts.test.js
index 93029854e..c7e0d0221 100644
--- a/packages/desktop-client/e2e/accounts.test.js
+++ b/packages/desktop-client/e2e/accounts.test.js
@@ -80,6 +80,8 @@ test.describe('Accounts', () => {
         credit: '34.56',
       });
 
+      await page.waitForTimeout(100); // Give time for the previous transaction to be rendered
+
       await accountPage.selectNthTransaction(0);
       await accountPage.selectNthTransaction(1);
       await accountPage.clickSelectAction('Make transfer');
diff --git a/upcoming-release-notes/2434.md b/upcoming-release-notes/2434.md
new file mode 100644
index 000000000..6019bcfe3
--- /dev/null
+++ b/upcoming-release-notes/2434.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [twk3]
+---
+
+Fix flaky transfer e2e test.
\ No newline at end of file
-- 
GitLab