🚸(app-desk) add 404 page

- Add a 404 page.
- Redirect to 404 page when a team is not found.
This commit is contained in:
Anthony LC
2024-02-09 12:46:52 +01:00
committed by Anthony LC
parent 54497c1261
commit 195e738c3c
5 changed files with 59 additions and 3 deletions

View File

@@ -94,4 +94,11 @@ test.describe('Teams Create', () => {
await expect(buttonCreateHomepage).toBeVisible();
await expect(page).toHaveURL(/\/teams$/);
});
test('checks 404 on teams/[id] page', async ({ page }) => {
await page.goto('/teams/some-unknown-team');
await expect(page.getByText('404 - Page not found')).toBeVisible({
timeout: 15000,
});
});
});