fix(test): update tests for multi-user schema and improve e2e reliability

Update unit test helpers with full multi-user schema, fix auth tests to
include email field, and improve e2e tests with specific card targeting
and force clicks for hover-revealed buttons.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Frederic Cabassut
2026-03-09 01:10:37 +01:00
committed by Fred Cabassut
co-authored by Claude Opus 4.6
parent c0b5aa3bcb
commit b90ab18ea7
5 changed files with 45 additions and 13 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ test.describe('Notes CRUD', () => {
// When the user trashes the note
const card = noteCard(page, 'Delete Me');
await card.hover();
await card.getByTestId('trash-btn').click();
await card.getByTestId('trash-btn').click({ force: true });
// Then the note is no longer visible
await expect(page.getByText('Delete Me')).not.toBeVisible();