[e2e] Account page tests - wait for transaction table to be visible (#3530)

* Wait for transaction table to be visible

* Release notes
This commit is contained in:
Joel Jeremy Marquez
2024-09-30 15:25:44 -06:00
committed by GitHub
parent 92980ab55b
commit 4df03984bd
3 changed files with 12 additions and 1 deletions

View File

@@ -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();

View File

@@ -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) {

View File

@@ -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