1 import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
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);
10 Then('I should see a message {string}', () => {
11 cy.get('cd-create-cluster').should('contain.text', 'Please expand your cluster first');