]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
d18c348554691aac3c2e854b9a240a305023f9b6
[ceph.git] /
1 import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
2
3 Given('I am on the {string} section', (page: string) => {
4   cy.get('cd-wizard').within(() => {
5     cy.get('.nav-link').should('contain.text', page).first().click();
6     cy.get('.nav-link.active').should('contain.text', page);
7   });
8 });
9
10 Then('I should see a message {string}', () => {
11   cy.get('cd-create-cluster').should('contain.text', 'Please expand your cluster first');
12 });