Skip to content

A local-first personal finance app

[Maintenance] Fix slow/flaky VRT test (#2634)

Joel Jeremy Marquez85affae70f1a
diff --git a/packages/desktop-client/e2e/schedules.test.js b/packages/desktop-client/e2e/schedules.test.js
index 770f0e6ad7..cc8e374365 100644
--- a/packages/desktop-client/e2e/schedules.test.js
+++ b/packages/desktop-client/e2e/schedules.test.js
@@ -31,6 +31,8 @@ test.describe('Schedules', () => {
});
test('creates a new schedule, posts the transaction and later completes it', async () => {
+ test.setTimeout(40000);
+
await schedulesPage.addNewSchedule({
payee: 'Home Depot',
account: 'HSBC',
@@ -79,7 +81,7 @@ test.describe('Schedules', () => {
await expect(page).toMatchThemeScreenshots();
// Schedules search shouldn't shrink with many schedules
- for (let i = 0; i < 15; i++) {
+ for (let i = 0; i < 10; i++) {
await schedulesPage.addNewSchedule({
payee: 'Home Depot',
account: 'HSBC',
diff --git a/packages/desktop-client/e2e/schedules.test.js-snapshots/Schedules-creates-a-new-schedule-posts-the-transaction-and-later-completes-it-1-chromium-linux.png b/packages/desktop-client/e2e/schedules.test.js-snapshots/Schedules-creates-a-new-schedule-posts-the-transaction-and-later-completes-it-1-chromium-linux.png
index 04dd45ff94..1d7b2c95f8 100644
Binary files a/packages/desktop-client/e2e/schedules.test.js-snapshots/Schedules-creates-a-new-schedule-posts-the-transaction-and-later-completes-it-1-chromium-linux.png and b/packages/desktop-client/e2e/schedules.test.js-snapshots/Schedules-creates-a-new-schedule-posts-the-transaction-and-later-completes-it-1-chromium-linux.png differ
diff --git a/upcoming-release-notes/2634.md b/upcoming-release-notes/2634.md
new file mode 100644
index 0000000000..93972a0b04
--- /dev/null
+++ b/upcoming-release-notes/2634.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [joel-jeremy]
+---
+
+Fix slow VRT test - reduced number of iterations to speed up test