]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/common/create-cluster/create-cluster.feature.po.ts
import ceph quincy 17.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / common / create-cluster / create-cluster.feature.po.ts
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 });