diff --git a/cypress/integration/realm_settings_test.spec.ts b/cypress/integration/realm_settings_test.spec.ts index 885e1696e0..ea1c824604 100644 --- a/cypress/integration/realm_settings_test.spec.ts +++ b/cypress/integration/realm_settings_test.spec.ts @@ -462,6 +462,10 @@ describe("Realm settings tests", () => { realmSettingsPage.shouldCompleteAndCreateNewClientProfile(); }); + it("Should perform client profile search by profile name", () => { + realmSettingsPage.shouldSearchClientProfile(); + }); + it("Check cancelling the client profile deletion", () => { realmSettingsPage.shouldDisplayDeleteClientProfileDialog(); }); diff --git a/cypress/support/pages/admin_console/manage/realm_settings/RealmSettingsPage.ts b/cypress/support/pages/admin_console/manage/realm_settings/RealmSettingsPage.ts index 381d2ce94c..0a757f37fd 100644 --- a/cypress/support/pages/admin_console/manage/realm_settings/RealmSettingsPage.ts +++ b/cypress/support/pages/admin_console/manage/realm_settings/RealmSettingsPage.ts @@ -162,6 +162,7 @@ export default class RealmSettingsPage { private jsonEditorReloadBtn = "jsonEditor-reloadBtn"; private jsonEditor = ".monaco-scrollable-element.editor-scrollable.vs"; private createClientDrpDwn = ".pf-c-dropdown.pf-m-align-right"; + private searchFld = "[id^=realm-settings][id$=profilesinput]"; selectLoginThemeType(themeType: string) { cy.get(this.selectLoginTheme).click(); @@ -509,6 +510,12 @@ export default class RealmSettingsPage { ); } + shouldSearchClientProfile() { + cy.get(this.searchFld).click({ force: true }).type("Test").click(); + cy.get("table").should("be.visible").contains("td", "Test"); + cy.get(this.searchFld).click({ force: true }).clear(); + } + shouldDisplayDeleteClientProfileDialog() { cy.get(this.moreDrpDwn).last().click(); cy.get(this.moreDrpDwnItems).click();