🚸(app-desk) add 404 page
- Add a 404 page. - Redirect to 404 page when a team is not found.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user