feat(auth): enhance authentication system with multi-user support and admin role management
- Implemented multi-user authentication with role-based access control. - Added environment variables for initial admin user setup. - Updated README and example environment file with new authentication options. - Introduced user and system configuration models in the database schema. - Enhanced authentication middleware to support user registration and role management. - Updated frontend to handle new authentication flows, including admin user creation and role updates.
This commit is contained in:
@@ -70,20 +70,21 @@ test.describe("Dashboard Workflows", () => {
|
||||
await page.waitForLoadState("networkidle");
|
||||
await applyDashboardSearch(page, drawingName);
|
||||
|
||||
const cardLocator = await ensureCardVisible(page, createdDrawing.id);
|
||||
let cardLocator = await ensureCardVisible(page, createdDrawing.id);
|
||||
|
||||
await ensureCardSelected(page, createdDrawing.id);
|
||||
await page.getByTitle("Move to Trash").click();
|
||||
await expect(cardLocator).toHaveCount(0);
|
||||
|
||||
await page.getByRole("button", { name: /^Trash$/ }).click();
|
||||
const trashCard = await ensureCardVisible(page, createdDrawing.id);
|
||||
await applyDashboardSearch(page, drawingName);
|
||||
cardLocator = await ensureCardVisible(page, createdDrawing.id);
|
||||
|
||||
await ensureCardSelected(page, createdDrawing.id);
|
||||
await page.getByTitle("Delete Permanently").click();
|
||||
await page.getByRole("button", { name: /Delete \d+ Drawings/ }).click();
|
||||
|
||||
await expect(trashCard).toHaveCount(0);
|
||||
await expect(cardLocator).toHaveCount(0);
|
||||
|
||||
const response = await request.get(`${API_URL}/drawings/${createdDrawing.id}`);
|
||||
expect(response.status()).toBe(404);
|
||||
|
||||
Reference in New Issue
Block a user