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,
)
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}'
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' },
-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