mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 11:12:11 +01:00
feat: implement platform management system with authentication and dashboard
- Add PlatformUser model with roles (SUPER_ADMIN, ADMIN, SUPPORT) - Implement platform authentication with NextAuth - Create platform dashboard showing companies, users, and sessions - Add platform API endpoints for company management - Update landing page with SaaS design - Include test improvements and accessibility updates
This commit is contained in:
@ -56,7 +56,7 @@ describe("Accessibility Tests", () => {
|
||||
);
|
||||
|
||||
await screen.findByText("User Management");
|
||||
|
||||
|
||||
// Basic accessibility check - most critical violations would be caught here
|
||||
const results = await axe(container);
|
||||
expect(results.violations.length).toBeLessThan(5); // Allow minor violations
|
||||
@ -189,11 +189,11 @@ describe("Accessibility Tests", () => {
|
||||
|
||||
const emailInput = screen.getByLabelText("Email");
|
||||
const submitButton = screen.getByRole("button", { name: /invite user/i });
|
||||
|
||||
|
||||
// Elements should be focusable
|
||||
emailInput.focus();
|
||||
expect(emailInput).toHaveFocus();
|
||||
|
||||
|
||||
submitButton.focus();
|
||||
expect(submitButton).toHaveFocus();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user