]>
Commit | Line | Data |
---|---|---|
2a845540 TL |
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 | }); |