Skip to content

Commit

Permalink
Fixes the span item to reflect correct text (#1439)
Browse files Browse the repository at this point in the history
* Fixes the span item to reflect correct text

Signed-off-by: Darshit Chanpura <[email protected]>

* Fixes roles_spec test

Signed-off-by: Darshit Chanpura <[email protected]>

* Fixes sanity_test and tenants_spec

Signed-off-by: Darshit Chanpura <[email protected]>

---------

Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Jul 16, 2024
1 parent e67e547 commit c6eeff6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if (Cypress.env('SECURITY_ENABLED')) {

cy.reload();

cy.contains('h3', 'Tenants');
cy.contains('h3', 'Dashboards tenants');
// should contain the new tenant that was just created
cy.contains('.euiTableCellContent', tenantName);
cy.contains('span', tenantDescription);
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/plugins/security/internalusers_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if (Cypress.env('SECURITY_ENABLED')) {
}
);

cy.contains('span', 'Create user account');
cy.contains('span', 'Create internal user');

cy.url().should((url) => {
expect(url).to.not.contain('/users/create');
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/plugins/security/roles_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (Cypress.env('SECURITY_ENABLED')) {
.click({ force: true });

cy.contains('span', 'cluster:admin/opendistro/ad/detector/search').should(
'not.exist'
'exist'
);
});

Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/plugins/security/tenants_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (Cypress.env('SECURITY_ENABLED')) {
}
);

cy.contains('h3', 'Tenants');
cy.contains('h3', 'Dashboards tenants');

// One of the many tenants
cy.contains('.euiTableCellContent', 'Global');
Expand Down Expand Up @@ -69,7 +69,7 @@ if (Cypress.env('SECURITY_ENABLED')) {
expect(url).to.contain('/tenants');
});

cy.contains('h3', 'Tenants');
cy.contains('h3', 'Dashboards tenants');
// should contain the new tenant that was just created
cy.contains('.euiTableCellContent', tenantName);
cy.contains('span', tenantDescription);
Expand Down

0 comments on commit c6eeff6

Please sign in to comment.