From: Tiago Melo Date: Thu, 30 Apr 2020 17:24:33 +0000 (+0000) Subject: mgr/dashboard: E2E: Fix role-mgmt.po.ts X-Git-Tag: v16.1.0~2410^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afbdc9e45bdc39e01bced16450184e2029eb8271;p=ceph.git mgr/dashboard: E2E: Fix role-mgmt.po.ts Fixes: https://tracker.ceph.com/issues/45352 Signed-off-by: Tiago Melo --- diff --git a/src/pybind/mgr/dashboard/frontend/cypress/integration/ui/role-mgmt.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/integration/ui/role-mgmt.po.ts index 1f9c7616b8cb..2cbdef39b98a 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/integration/ui/role-mgmt.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/integration/ui/role-mgmt.po.ts @@ -17,7 +17,7 @@ export class RoleMgmtPageHelper extends PageHelper { // Click the create button and wait for role to be made cy.contains('button', 'Create Role').click(); - cy.get('.breadcrumb-item.active').should('not.have.text', name); + cy.get('.breadcrumb-item.active').should('not.have.text', 'Create'); this.getFirstTableCell(name).should('exist'); } @@ -32,7 +32,7 @@ export class RoleMgmtPageHelper extends PageHelper { // Click the edit button and check new values are present in table cy.contains('button', 'Edit Role').click(); - cy.get('.breadcrumb-item.active').should('not.have.text', name); + cy.get('.breadcrumb-item.active').should('not.have.text', 'Edit'); this.getFirstTableCell(name).should('exist'); this.getFirstTableCell(description).should('exist');