Skip to content

Commit

Permalink
remove extra comments
Browse files Browse the repository at this point in the history
Signed-off-by: leanneeliatra <[email protected]>
  • Loading branch information
leanneeliatra committed Sep 7, 2023
1 parent c5276f8 commit 7175ae4
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@

if(Cypress.env('SECURITY_ENABLED')){
it('Tests if no role button redirects to logout screen', () => {
// 1. visit missing roles page
cy.visit('/app/customerror/missing-role');

// 2. click the missing role button
cy.contains('button', 'Back to OpenSearch Dashboards Home').should('be.visible').click();

// 3. clicking buttong should logout
cy.intercept({
method: 'POST',
url: '/auth/logout',
});

// 4. check we have logged out and therefore are back at login page
cy.getElementByTestId('submit').should('contain.text', 'Log in');
});
}

0 comments on commit 7175ae4

Please sign in to comment.