From 626e7872e986c58bcf72e6a4401d595b45f9410d Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Sat, 28 Mar 2026 01:48:05 +0530 Subject: [PATCH] mgr/dashboard: Fix a11y tests of navigation Signed-off-by: Afreen Misbah --- src/pybind/mgr/dashboard/frontend/cypress.config.ts | 6 +++--- .../mgr/dashboard/frontend/cypress/e2e/ui/navigation.po.ts | 4 ++-- .../productive-card/productive-card.component.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/cypress.config.ts b/src/pybind/mgr/dashboard/frontend/cypress.config.ts index 63b236078c3..81d7992e6f1 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress.config.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress.config.ts @@ -22,8 +22,8 @@ export default defineConfig({ env: { LOGIN_USER: 'admin', - LOGIN_PWD: 'admin', - CEPH2_URL: 'https://localhost:4202/' + LOGIN_PWD: 'password', + CEPH2_URL: 'https://192.168.100.100:8443' }, chromeWebSecurity: false, @@ -55,7 +55,7 @@ export default defineConfig({ ) return require('./cypress/plugins/index.js')(on, config); }, - baseUrl: 'https://localhost:4200/', + baseUrl: 'https://192.168.100.100:8443/', excludeSpecPattern: ['*.po.ts', '**/orchestrator/**'], experimentalSessionAndOrigin: true, specPattern: 'cypress/e2e/**/*-spec.{js,jsx,ts,tsx,feature}' diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.po.ts index 791525bfcf7..70ba694efa9 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.po.ts @@ -2,11 +2,11 @@ import { PageHelper } from '../page-helper.po'; export class NavigationPageHelper extends PageHelper { pages = { - index: { url: '#/overview', id: 'cd-dashboard' } + index: { url: '#/overview', id: 'cd-overview' } }; navigations = [ - { menu: 'Overview', component: 'cd-dashboard' }, + { menu: 'Overview', component: 'cd-overview' }, { menu: 'Multi-Cluster', submenus: [ diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/productive-card/productive-card.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/productive-card/productive-card.component.html index d0e3187f254..f9e9cae8e53 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/productive-card/productive-card.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/productive-card/productive-card.component.html @@ -1,9 +1,9 @@ -
+
-
+
-- 2.47.3