Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit committed Dec 2, 2024
1 parent 270a778 commit 0106828
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions js/apps/admin-ui/cypress/e2e/partial_import_test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", "");
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0106828

Please sign in to comment.