Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions client/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,18 @@ describe('App', () => {
render(<App />);
expect(document.body).toBeInTheDocument();
// Wait for auth check and lazy-loaded component to resolve
await waitFor(() => expect(screen.queryByText('Loading...')).not.toBeInTheDocument());
await waitFor(() => expect(screen.queryByText('Loading...')).not.toBeInTheDocument(), {
timeout: 5000,
});
});

it('renders the AppShell layout with sidebar and header', async () => {
render(<App />);

// Wait for auth loading to complete
await waitFor(() => expect(screen.queryByText('Loading...')).not.toBeInTheDocument());
await waitFor(() => expect(screen.queryByText('Loading...')).not.toBeInTheDocument(), {
timeout: 5000,
});

// Sidebar should be present
const sidebar = screen.getByRole('complementary');
Expand Down
4 changes: 3 additions & 1 deletion e2e/tests/budget/budget-overview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ test.describe('Budget Health Hero', { tag: '@responsive' }, () => {
await overviewPage.waitForLoaded();

// Then: The BudgetBar stacked bar chart is visible (role="img")
await expect(page.getByRole('img')).toBeVisible({ timeout: 8000 });
await expect(page.getByRole('img', { name: /Budget breakdown/ })).toBeVisible({
timeout: 8000,
});
} finally {
await page.unroute(`${API.budgetOverview}`);
}
Expand Down