feat: implement Save & Taste flow in CameraCapture

This commit is contained in:
2025-12-18 11:49:40 +01:00
parent 2685176992
commit 5f757d7b56
9 changed files with 244 additions and 19 deletions

View File

@@ -0,0 +1,22 @@
import { test, expect } from '@playwright/test';
test.describe('Collection View', () => {
test('should show empty state message if no bottles found', async ({ page }) => {
// This test assumes a clean or specific state.
// In a real environment, we'd use a test user with 0 bottles.
await page.goto('/');
// If we can't control the user, we at least check that we don't see the technical error message
const errorBox = page.locator('text=Hoppla');
await expect(errorBox).not.toBeVisible();
// Check for either the grid or the empty state message
const emptyMessage = page.locator('text=Noch keine Flaschen im Vault');
const bottleGrid = page.locator('.grid');
const isGridVisible = await bottleGrid.isVisible();
if (!isGridVisible) {
await expect(emptyMessage).toBeVisible();
}
});
});