Skip to content

Commit

Permalink
Fix for cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Bogusz committed Feb 25, 2025
1 parent 7f6d894 commit f798880
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions designer/client/cypress/e2e/components.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("Components list", () => {
filterByDefaultCategory();
cy.contains(/^name$/i).should("be.visible");
cy.contains(/^categories$/i).should("be.visible");
cy.contains(/^for-each$/).should("be.visible");
cy.contains(/^for each$/).should("be.visible");
cy.get("#app-container").matchImage();
});

Expand All @@ -41,7 +41,7 @@ describe("Components list", () => {
it("should allow filtering by name", () => {
filterByDefaultCategory();
cy.get("[placeholder='Search...']").type("for", { force: true });
cy.contains(/^for-each$/i).should("be.visible");
cy.contains(/^for each$/i).should("be.visible");
cy.get("[role=row]").should("have.lengthOf", 2);
cy.get("[placeholder='Search...']").type("-dummy");
cy.get("[role=row]").should("have.lengthOf", 1);
Expand All @@ -54,7 +54,7 @@ describe("Components list", () => {
force: true,
delay: 100,
});
cy.contains(/^for-each$/i).should("be.visible");
cy.contains(/^for each$/i).should("be.visible");
cy.get("[role=row]").should("have.lengthOf", 2);
cy.matchQuery("?CATEGORY=Default&NAME=fo+ea");
cy.get("[role=grid]").matchImage();
Expand Down
6 changes: 3 additions & 3 deletions designer/client/cypress/e2e/process.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ describe("Process", () => {
.scrollIntoView();
const x = 900;
const y = 630;
cy.get("[data-testid='component:dead-end']").should("be.visible").drag("#nk-graph-main", {
cy.get("[data-testid='component:dead end']").should("be.visible").drag("#nk-graph-main", {
target: {
x,
y,
Expand Down Expand Up @@ -256,7 +256,7 @@ describe("Process", () => {
cy.viewport(1500, 800);
cy.layoutScenario();

cy.get(`[model-id="dead-end(true)"]`).click().type("{backspace}");
cy.get(`[model-id="dead end(true)"]`).click().type("{backspace}");
cy.wait("@validation");

cy.getNode("filter")
Expand All @@ -269,7 +269,7 @@ describe("Process", () => {
.scrollIntoView();
const x = 700;
const y = 600;
cy.get("[data-testid='component:dead-end']").should("be.visible").drag("#nk-graph-main", {
cy.get("[data-testid='component:dead end']").should("be.visible").drag("#nk-graph-main", {
target: {
x,
y,
Expand Down

0 comments on commit f798880

Please sign in to comment.