forked from cartsnitch/cartsnitch
fix(e2e): address CTO/QA review — remove mock-incompatible test, fix smoke test, fix a11y
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
+4
-4
@@ -1,8 +1,8 @@
|
||||
import { test, expect } from './fixtures';
|
||||
|
||||
test("app loads", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
await expect(page).toHaveTitle(/CartSnitch/);
|
||||
// Unauthenticated users are redirected to login
|
||||
test('app loads', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
// Unauthenticated users are redirected to /login
|
||||
await expect(page).toHaveURL(/\/login/);
|
||||
await expect(page.getByRole('heading', { name: /sign in|log in/i })).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user