diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/cypress/e2e/common')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/cypress/e2e/common/table-helper.feature.po.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/common/table-helper.feature.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/common/table-helper.feature.po.ts index 82a2c7c35..330950acd 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/common/table-helper.feature.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/common/table-helper.feature.po.ts @@ -54,6 +54,13 @@ Then('I should not see a row with {string}', (row: string) => { ); }); +Then('I should see a table in the expanded row', () => { + cy.get('.datatable-row-detail').within(() => { + cy.get('cd-table').should('exist'); + cy.get('datatable-scroller, .empty-row'); + }); +}); + Then('I should not see a row with {string} in the expanded row', (row: string) => { cy.get('.datatable-row-detail').within(() => { cy.get('cd-table .search input').first().clear().type(row); @@ -133,3 +140,9 @@ And('I should see row {string} have {string} on this tab', (row: string, options }); } }); + +Then('I should see an alert {string} in the expanded row', (alert: string) => { + cy.get('.datatable-row-detail').within(() => { + cy.get('.alert-panel-text').contains(alert); + }); +}); |