From 01068281669b50a47f2a7ba9f037acde8d65ee56 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 2 Dec 2024 12:16:32 +0100 Subject: [PATCH] fixed tests Signed-off-by: Erik Jan de Wit --- js/apps/admin-ui/cypress/e2e/partial_import_test.spec.ts | 7 +++---- .../configure/realm_settings/PartialImportModal.ts | 2 +- .../admin-ui/manage/realm_settings/RealmSettingsPage.ts | 2 +- .../pages/admin-ui/manage/realm_settings/UserProfile.ts | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/js/apps/admin-ui/cypress/e2e/partial_import_test.spec.ts b/js/apps/admin-ui/cypress/e2e/partial_import_test.spec.ts index 279f43a5aa92..d0e37e5a352c 100644 --- a/js/apps/admin-ui/cypress/e2e/partial_import_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/partial_import_test.spec.ts @@ -119,13 +119,12 @@ describe("Partial import test", () => { //clear button should be disabled if there is nothing in the dialog modal.clearButton().should("be.disabled"); - modal.textArea().get(".view-lines").should("have.text", ""); - modal.textArea().get(".view-lines").click(); + modal.textArea().should("have.text", ""); modal.textArea().type("{}", { force: true }); - modal.textArea().get(".view-lines").should("have.text", "{}"); + modal.textArea().should("have.text", "{}"); modal.clearButton().should("not.be.disabled"); modal.clearButton().click(); modal.clickClearConfirmButton(); - modal.textArea().get(".view-lines").should("have.text", ""); + modal.textArea().should("have.text", ""); }); }); diff --git a/js/apps/admin-ui/cypress/support/pages/admin-ui/configure/realm_settings/PartialImportModal.ts b/js/apps/admin-ui/cypress/support/pages/admin-ui/configure/realm_settings/PartialImportModal.ts index a8b521b3d39d..ffcc2bbec1b2 100644 --- a/js/apps/admin-ui/cypress/support/pages/admin-ui/configure/realm_settings/PartialImportModal.ts +++ b/js/apps/admin-ui/cypress/support/pages/admin-ui/configure/realm_settings/PartialImportModal.ts @@ -14,7 +14,7 @@ export default class GroupModal { }; textArea() { - return cy.get(".pf-v5-c-code-editor__code textarea"); + return cy.get(".w-tc-editor-text"); } importButton() { diff --git a/js/apps/admin-ui/cypress/support/pages/admin-ui/manage/realm_settings/RealmSettingsPage.ts b/js/apps/admin-ui/cypress/support/pages/admin-ui/manage/realm_settings/RealmSettingsPage.ts index e064b1383d0c..7967580e061d 100644 --- a/js/apps/admin-ui/cypress/support/pages/admin-ui/manage/realm_settings/RealmSettingsPage.ts +++ b/js/apps/admin-ui/cypress/support/pages/admin-ui/manage/realm_settings/RealmSettingsPage.ts @@ -190,7 +190,7 @@ export default class RealmSettingsPage extends CommonPage { #jsonEditorSaveBtn = "jsonEditor-saveBtn"; #jsonEditorSavePoliciesBtn = "jsonEditor-policies-saveBtn"; #jsonEditorReloadBtn = "jsonEditor-reloadBtn"; - #jsonEditor = ".monaco-scrollable-element.editor-scrollable.vs"; + #jsonEditor = ".w-tc-editor-text"; #clientPolicyDrpDwn = '[data-testid="action-dropdown"]'; #deleteclientPolicyDrpDwn = "deleteClientPolicyDropdown"; #clientProfileOne = diff --git a/js/apps/admin-ui/cypress/support/pages/admin-ui/manage/realm_settings/UserProfile.ts b/js/apps/admin-ui/cypress/support/pages/admin-ui/manage/realm_settings/UserProfile.ts index eba3825527d0..b3f971bf7317 100644 --- a/js/apps/admin-ui/cypress/support/pages/admin-ui/manage/realm_settings/UserProfile.ts +++ b/js/apps/admin-ui/cypress/support/pages/admin-ui/manage/realm_settings/UserProfile.ts @@ -200,7 +200,7 @@ export default class UserProfile { } #textArea() { - return cy.get(".pf-v5-c-code-editor__code textarea"); + return cy.get(".w-tc-editor-text"); } #getText() {