Skip to content

Commit 6289982

Browse files
authored
OCPBUGS-55085: Add test case to verify IDP successfully removed (#14977)
* add test case to verify IDP was sucessfully removed * upd * upd
1 parent 3b897f7 commit 6289982

File tree

1 file changed

+5
-0
lines changed
  • frontend/packages/integration-tests-cypress/tests/cluster-settings

1 file changed

+5
-0
lines changed

frontend/packages/integration-tests-cypress/tests/cluster-settings/oauth.cy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,13 @@ describe('OAuth', () => {
8787

8888
it(`removes the Basic Authentication IDP 'basic-auth-${testName}' in the list on the OAuth settings page`, () => {
8989
const idpName = `basic-auth-${testName}`;
90+
91+
// Open the kebab menu and remove the IDP
9092
cy.get(`[data-test-idp-kebab-for="${idpName}"]`).find('[data-test-id="kebab-button"]').click();
9193
cy.get('[data-test-action="Remove identity provider"]').should('be.visible').click();
9294
cy.get('[data-test="confirm-action"]').click();
95+
96+
// Verify the IDP was successfully removed
97+
cy.get(`[data-test-idp-kebab-for="${idpName}"]`).should('not.exist');
9398
});
9499
});

0 commit comments

Comments
 (0)