From: Afreen Misbah Date: Fri, 27 Mar 2026 20:18:05 +0000 (+0530) Subject: mgr/dashboard: Fix a11y tests of navigation X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=626e7872e986c58bcf72e6a4401d595b45f9410d;p=ceph.git mgr/dashboard: Fix a11y tests of navigation Signed-off-by: Afreen Misbah --- diff --git a/src/pybind/mgr/dashboard/frontend/cypress.config.ts b/src/pybind/mgr/dashboard/frontend/cypress.config.ts index 63b236078c3c..81d7992e6f16 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 791525bfcf75..70ba694efa91 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 d0e3187f2546..f9e9cae8e53c 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 @@ -
+
-
+