Skip to content

Commit

Permalink
Fix for some cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Bogusz committed Mar 4, 2025
1 parent 7068e17 commit cade61f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions designer/client/cypress/e2e/compareVersions.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("Compare versions", () => {
.trigger("mouseup", { force: true });

// Change fragment param and save changes
cy.get("[model-id^=e2e][model-id$=fragment_xxx-test-process]").should("be.visible").trigger("dblclick");
cy.get('[model-id^=E2e][model-id$="001 Fragment_xxx Test Process"]').should("be.visible").trigger("dblclick");
cy.get("[data-testid=window]").find('[title="i222"]').siblings().eq(0).find("#ace-editor").type("4");
cy.contains(/^apply/i)
.should("be.enabled")
Expand All @@ -55,7 +55,7 @@ describe("Compare versions", () => {
cy.get("[data-testid=window]").should("not.exist");

// Change fragment param again and save changes
cy.get("[model-id^=e2e][model-id$=fragment_xxx-test-process]").should("be.visible").trigger("dblclick");
cy.get('[model-id^=E2e][model-id$="001 Fragment_xxx Test Process"]').should("be.visible").trigger("dblclick");
cy.get("[data-testid=window]").find('[title="i222"]').siblings().eq(0).find("#ace-editor").type("7");
cy.contains(/^apply/i)
.should("be.enabled")
Expand Down
4 changes: 2 additions & 2 deletions designer/client/cypress/e2e/components.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe("Components list", () => {
.click();
cy.get("[role=row]")
.should("have.lengthOf", baseGroupComponents + 1)
.contains(":not(title)", /^filter$/)
.contains(":not(title)", /^Filter$/)
.should("be.visible");
cy.get(`[data-testid="FilterListOffIcon"]`).click();
cy.get("[role=row]").should("have.length.greaterThan", 2);
Expand Down Expand Up @@ -191,7 +191,7 @@ describe("Components list", () => {
cy.visitNewProcess(`${seed}_yyy`, "testProcess2");
cy.get("#toolbox").contains("fragments").should("exist").scrollIntoView();
cy.layoutScenario();
cy.contains(`${seed}_xxx`)
cy.contains(`${seed.charAt(0).toUpperCase() + seed.slice(1)}_xxx`)
.last()
.should("be.visible")
.drag("#nk-graph-main", {
Expand Down
4 changes: 2 additions & 2 deletions designer/client/cypress/e2e/fragment.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ describe("Fragment", () => {
cy.contains(/^ok$/i).click();

// Verify if Frontend received correct data after save
cy.get("[model-id^=e2e][model-id$=fragment-test-process]").trigger("dblclick");
cy.get('[model-id^=E2e][model-id$="001 Fragment Test Process"]').trigger("dblclick");
cy.get('[title="any_value_with_suggestions_preset"]').siblings().eq(0).find("#ace-editor").contains("#RGB()");
cy.contains(/^apply/i)
.should("be.enabled")
Expand All @@ -297,7 +297,7 @@ describe("Fragment", () => {
cy.go(1);

// Verify existing fragment after properties change
cy.get("[model-id^=e2e][model-id$=fragment-test-process]").should("be.visible").trigger("dblclick");
cy.get('[model-id^=E2e][model-id$="001 Fragment Test Process"]').should("be.visible").trigger("dblclick");
cy.get("[data-testid=window]").get("[title='name_value_string_any_value']").siblings().eq(0).find("[id='ace-editor']").type("test");

cy.get("@window")
Expand Down

0 comments on commit cade61f

Please sign in to comment.