fix: update routing to show online board at /, fix component tests

- Changed root route (/) to show OnlineBoardStartPage directly instead of redirecting
- Updated component tests to visit /components route
- Fixed button component test assertions (CSS checks and disabled state verification)
This commit is contained in:
gnezim
2026-04-06 00:31:58 +03:00
parent f08a86c453
commit 483e034e63
12 changed files with 20 additions and 13 deletions
+8 -3
View File
@@ -1,12 +1,17 @@
import { Navigate, RouteObject } from 'react-router-dom'
const routes: RouteObject[] = [
// Root redirect to onlineboard
// Root shows OnlineBoardStartPage
{
path: '/',
element: <Navigate to="/onlineboard" replace />,
lazy: async () => {
const { OnlineBoardStartPage } = await import(
'../pages/OnlineBoardStartPage'
)
return { Component: OnlineBoardStartPage }
},
},
// Online Board routes
// Online Board routes (alias for backward compatibility)
{
path: '/onlineboard',
lazy: async () => {