diff --git a/packages/desktop-client/e2e/onboarding.test.js b/packages/desktop-client/e2e/onboarding.test.js index 926d24bcd94..3f5a7368187 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.js index 3b5e8c6c99e..903ec5dfdd9 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.md new file mode 100644 index 00000000000..523cde14cda --- /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