]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix creat-cluster welcome tests
authorAfreen Misbah <afreen@ibm.com>
Fri, 27 Mar 2026 21:15:49 +0000 (02:45 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 12 May 2026 09:09:48 +0000 (14:39 +0530)
Fixes https://tracker.ceph.com/issues/75697

Signed-off-by: Afreen Misbah <afreen@ibm.com>
src/pybind/mgr/dashboard/frontend/cypress.config.ts
src/pybind/mgr/dashboard/frontend/cypress/e2e/common/create-cluster/create-cluster.feature.po.ts
src/pybind/mgr/dashboard/frontend/cypress/e2e/common/urls.po.ts
src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/01-create-cluster-welcome.feature
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.html

index 81d7992e6f166541eb18dc4903b25b336a8b6c81..63b236078c3c32608b66a61e1b204c80055b906d 100644 (file)
@@ -22,8 +22,8 @@ export default defineConfig({
 
   env: {
     LOGIN_USER: 'admin',
-    LOGIN_PWD: 'password',
-    CEPH2_URL: 'https://192.168.100.100:8443'
+    LOGIN_PWD: 'admin',
+    CEPH2_URL: 'https://localhost:4202/'
   },
 
   chromeWebSecurity: false,
@@ -55,7 +55,7 @@ export default defineConfig({
       )
       return require('./cypress/plugins/index.js')(on, config);
     },
-    baseUrl: 'https://192.168.100.100:8443/',
+    baseUrl: 'https://localhost:4200/',
     excludeSpecPattern: ['*.po.ts', '**/orchestrator/**'],
     experimentalSessionAndOrigin: true,
     specPattern: 'cypress/e2e/**/*-spec.{js,jsx,ts,tsx,feature}'
index 76c3cedf653dd54bfe09900cc89de46d3e4b9d3c..b42ea14f7faa1e9338b1011e100ee98ce3a66cac 100644 (file)
@@ -8,5 +8,5 @@ Given('I am on the {string} section', (page: string) => {
 });
 
 Then('I should see a message {string}', () => {
-  cy.get('cd-create-cluster').should('contain.text', 'Please expand your cluster first');
+  cy.get('cd-create-cluster').should('contain.text', 'Welcome to Ceph Dashboard');
 });
index 853b120745244fbd3e1fddc8aa3997546a50045e..d00cd065946e5a9d5687bca62ee9caf0f2fbdee1 100644 (file)
@@ -3,10 +3,10 @@ import { PageHelper } from '../page-helper.po';
 export class UrlsCollection extends PageHelper {
   pages = {
     // Cluster expansion
-    welcome: { url: '#/add-storage?welcome=true', id: 'cd-create-cluster' },
+    onboarding: { url: '#/add-storage?welcome=true', id: 'cd-create-cluster' },
 
     // Landing page
-    overview: { url: '#/overview', id: 'cd-dashboard' },
+    overview: { url: '#/overview', id: 'cd-overview' },
 
     // Hosts
     hosts: { url: '#/hosts', id: 'cd-hosts' },
index 21cb81698c56f26d64220aa38d3d52aabc1e750f..1b77603928ccedba8885c8707b84e856dcfb754c 100644 (file)
@@ -1,26 +1,26 @@
-Feature: Cluster expansion welcome screen
+Feature: Onboarding welcome screen
 
-    Go to the welcome screen and decide whether
+    Go to the welcome onboarding screen and decide whether
     to proceed to wizard or skips to landing page
 
     Background: Login
         Given I am logged in
 
-    Scenario: Cluster expansion welcome screen
-        Given I am on the "welcome" page
+    Scenario: Onboarding welcome screen
+        Given I am on the "onboarding" page
         And I should see a button to "Add Storage"
-        And I should see a button to "Skip"
-        And I should see a message "Please expand your cluster first"
+        And I should see a button to "View cluster overview"
+        And I should see a message "Welcome to Ceph Dashboard"
 
-    Scenario: Go to the Cluster expansion wizard
-        Given I am on the "welcome" page
+    Scenario: Go to the Add storage wizard
+        Given I am on the "onboarding" page
         And I should see a button to "Add Storage"
         When I click on "Add Storage" button
         Then I am on the "Add Hosts" section
 
     Scenario: Skips the process and go to the landing page
-        Given I am on the "welcome" page
-        And I should see a button to "Skip"
-        When I click on "Skip" button
+        Given I am on the "onboarding" page
+        And I should see a button to "View cluster overview"
+        When I click on "View cluster overview" button
         And I confirm to "Continue" on carbon modal
         Then I should be on the "overview" page
index cc2b15ad27158c7850b46aa80fc923ff9d536562..dddcdafc0152251956f032a7f5afeea977c49425 100644 (file)
         </button>
         <button cdsButton="tertiary"
                 (click)="skipClusterCreation()"
+                aria-label="View cluster overview"
                 i18n>
           View cluster overview
           <svg [cdsIcon]="icons.right"