Merge pull request #34868 from tspmelo/wip-fix-e2e-role

mgr/dashboard: E2E: Fix role-mgmt.po.ts

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
This commit is contained in:
Laura Paduano 2020-05-06 13:38:08 +02:00 committed by GitHub
commit cd0a702d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');