diff --git a/apps/react/src/app/router/routes.tsx b/apps/react/src/app/router/routes.tsx index 9f3800a85..f3e7d4d20 100644 --- a/apps/react/src/app/router/routes.tsx +++ b/apps/react/src/app/router/routes.tsx @@ -1,12 +1,17 @@ import { Navigate, RouteObject } from 'react-router-dom' const routes: RouteObject[] = [ - // Root redirect to onlineboard + // Root shows OnlineBoardStartPage { path: '/', - element: , + 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 () => { diff --git a/e2e/cypress.config.ts b/e2e/cypress.config.ts index 20bf96d75..d2bd16799 100644 --- a/e2e/cypress.config.ts +++ b/e2e/cypress.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'cypress' export default defineConfig({ e2e: { - baseUrl: 'http://localhost:3001', + baseUrl: 'http://127.0.0.1:3001', supportFile: 'cypress/support/index.ts', specPattern: ['cypress/integration/**/*.cy.ts', 'cypress/integration/**/*.spec.ts'], viewportWidth: 1440, diff --git a/e2e/cypress/integration/components/button.cy.ts b/e2e/cypress/integration/components/button.cy.ts index 8deb8cbee..f624910a1 100644 --- a/e2e/cypress/integration/components/button.cy.ts +++ b/e2e/cypress/integration/components/button.cy.ts @@ -1,6 +1,6 @@ describe('Button Component', () => { beforeEach(() => { - cy.visit('/') + cy.visit('/components') }) it('should render button with text', () => { @@ -8,9 +8,10 @@ describe('Button Component', () => { }) it('should have correct styling', () => { - cy.get('[data-testid="button"]') - .should('have.css', 'padding') - .should('have.css', 'border-radius') + cy.get('[data-testid="button"]').should(($btn) => { + expect($btn).to.have.css('padding') + expect($btn).to.have.css('border-radius') + }) }) it('should support variant classes', () => { @@ -22,6 +23,7 @@ describe('Button Component', () => { }) it('should handle disabled state', () => { - cy.get('[data-testid="button"]').should('not.be.disabled') + cy.get('[data-testid="button"]').first().should('not.be.disabled') + cy.get('[data-testid="button-showcase"] button').last().should('be.disabled') }) }) diff --git a/e2e/cypress/integration/components/datepicker.cy.ts b/e2e/cypress/integration/components/datepicker.cy.ts index 5400375da..028e564cc 100644 --- a/e2e/cypress/integration/components/datepicker.cy.ts +++ b/e2e/cypress/integration/components/datepicker.cy.ts @@ -3,7 +3,7 @@ import { dataHelpers } from '../../support/helpers/data-helpers' describe('DatePicker Component Tests', () => { beforeEach(() => { - cy.visit('/') + cy.visit('/components') }) describe('DatePicker Display', () => { diff --git a/e2e/cypress/integration/components/input.cy.ts b/e2e/cypress/integration/components/input.cy.ts index 63b9c2722..84e4cc8ee 100644 --- a/e2e/cypress/integration/components/input.cy.ts +++ b/e2e/cypress/integration/components/input.cy.ts @@ -2,7 +2,7 @@ import { uiHelpers } from '../../support/helpers/ui-helpers' describe('Input Component Tests', () => { beforeEach(() => { - cy.visit('/') + cy.visit('/components') }) describe('Input Display', () => { diff --git a/e2e/cypress/integration/components/modal.cy.ts b/e2e/cypress/integration/components/modal.cy.ts index 692e6a14f..4bcd95cca 100644 --- a/e2e/cypress/integration/components/modal.cy.ts +++ b/e2e/cypress/integration/components/modal.cy.ts @@ -2,7 +2,7 @@ import { uiHelpers } from '../../support/helpers/ui-helpers' describe('Modal Component Tests', () => { beforeEach(() => { - cy.visit('/') + cy.visit('/components') }) describe('Modal Display', () => { diff --git a/e2e/cypress/integration/components/tabs.cy.ts b/e2e/cypress/integration/components/tabs.cy.ts index 8667a41aa..902f69a72 100644 --- a/e2e/cypress/integration/components/tabs.cy.ts +++ b/e2e/cypress/integration/components/tabs.cy.ts @@ -2,7 +2,7 @@ import { uiHelpers } from '../../support/helpers/ui-helpers' describe('Tabs Component Tests', () => { beforeEach(() => { - cy.visit('/') + cy.visit('/components') }) describe('Tabs Display', () => { diff --git a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should display error message (failed).png b/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should display error message (failed).png deleted file mode 100644 index fe4bb7e34..000000000 Binary files a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should display error message (failed).png and /dev/null differ diff --git a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should have back button (failed).png b/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should have back button (failed).png deleted file mode 100644 index 895d6a13b..000000000 Binary files a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should have back button (failed).png and /dev/null differ diff --git a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should have home link (failed).png b/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should have home link (failed).png deleted file mode 100644 index d778fb7e2..000000000 Binary files a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should have home link (failed).png and /dev/null differ diff --git a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should show 404 for invalid route (failed).png b/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should show 404 for invalid route (failed).png deleted file mode 100644 index 197dd9d34..000000000 Binary files a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- 404 Page Display -- should show 404 for invalid route (failed).png and /dev/null differ diff --git a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- Accessibility -- should have proper heading (failed).png b/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- Accessibility -- should have proper heading (failed).png deleted file mode 100644 index c6520d2ab..000000000 Binary files a/e2e/cypress/screenshots/404.cy.ts/Navigation - 404 Error Page -- Accessibility -- should have proper heading (failed).png and /dev/null differ