mirror of
https://github.com/ceph/ceph
synced 2026-08-02 23:20:36 +00:00
mgr/dashboard: Fix creat-cluster welcome tests
Fixes https://tracker.ceph.com/issues/75697 Signed-off-by: Afreen Misbah <afreen@ibm.com>
This commit is contained in:
parent
492d1a023d
commit
0fb99092ef
@ -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}'
|
||||
|
||||
@ -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');
|
||||
});
|
||||
|
||||
@ -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' },
|
||||
|
||||
@ -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
|
||||
|
||||
@ -150,6 +150,7 @@
|
||||
</button>
|
||||
<button cdsButton="tertiary"
|
||||
(click)="skipClusterCreation()"
|
||||
aria-label="View cluster overview"
|
||||
i18n>
|
||||
View cluster overview
|
||||
<svg [cdsIcon]="icons.right"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user