]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix a11y tests of navigation
authorAfreen Misbah <afreen@ibm.com>
Fri, 27 Mar 2026 20:18:05 +0000 (01:48 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 12 May 2026 09:09:48 +0000 (14:39 +0530)
Signed-off-by: Afreen Misbah <afreen@ibm.com>
src/pybind/mgr/dashboard/frontend/cypress.config.ts
src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.po.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/productive-card/productive-card.component.html

index 63b236078c3c32608b66a61e1b204c80055b906d..81d7992e6f166541eb18dc4903b25b336a8b6c81 100644 (file)
@@ -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}'
index 791525bfcf755c59d2673a8cb777a58e1e9b4975..70ba694efa91ba47c302fc3928f3c8f7ff9bda9e 100644 (file)
@@ -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: [
index d0e3187f254686d1a4c54ddda88db0402d853109..f9e9cae8e53cc651144eff4069fe3cd457411c23 100644 (file)
@@ -1,9 +1,9 @@
 <cds-tile class="productive-card"
           [ngClass]="{'productive-card--shadow': applyShadow}"
           [cdsLayer]="0">
-  <header class="productive-card-header">
+  <div class="productive-card-header">
     <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
-  </header>
+  </div>
   <section class="productive-card-section cds--type-body-compact-01"
            [ngClass]="{'productive-card-section--footer': footerTemplate}">
     <ng-content></ng-content>