Skip to content

Commit

Permalink
Wait for transaction table to be visible
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Sep 29, 2024
1 parent 3b97d1e commit a0fabf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/desktop-client/e2e/onboarding.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions packages/desktop-client/e2e/page-models/configuration-page.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { AccountPage } from './account-page';
import { BudgetPage } from './budget-page';

export class ConfigurationPage {
Expand All @@ -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) {
Expand Down

0 comments on commit a0fabf3

Please sign in to comment.