A local-first personal finance app
[e2e] Account page tests - wait for transaction table to be visible (#3530)
Joel Jeremy Marquez4df03984bd64
diff --git a/packages/desktop-client/e2e/onboarding.test.js b/packages/desktop-client/e2e/onboarding.test.jsindex 926d24bcd9..3f5a736818 100644--- a/packages/desktop-client/e2e/onboarding.test.js+++ b/packages/desktop-client/e2e/onboarding.test.js@@ -93,7 +93,9 @@ test.describe('Onboarding', () => {test('navigates back to start page by clicking on “no server” in an empty budget file', async () => {await configurationPage.clickOnNoServer();- await configurationPage.startFresh();+ const accountPage = await configurationPage.startFresh();++ await expect(accountPage.transactionTable).toBeVisible();await navigation.clickOnNoServer();await page.getByRole('button', { name: 'Start using a server' }).click();diff --git a/packages/desktop-client/e2e/page-models/configuration-page.js b/packages/desktop-client/e2e/page-models/configuration-page.jsindex 3b5e8c6c99..903ec5dfdd 100644--- a/packages/desktop-client/e2e/page-models/configuration-page.js+++ b/packages/desktop-client/e2e/page-models/configuration-page.js@@ -1,3 +1,4 @@+import { AccountPage } from './account-page';import { BudgetPage } from './budget-page';export class ConfigurationPage {@@ -18,6 +19,8 @@ export class ConfigurationPage {async startFresh() {await this.page.getByRole('button', { name: 'Start fresh' }).click();++ return new AccountPage(this.page);}async importBudget(type, file) {diff --git a/upcoming-release-notes/3530.md b/upcoming-release-notes/3530.mdnew file mode 100644index 0000000000..523cde14cd--- /dev/null+++ b/upcoming-release-notes/3530.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [joel-jeremy]+---++[e2e] Fix the flaky "navigates back to start page by clicking on “no server” in an empty budget file test" from onboarding.test.js