Skip to content

Commit

Permalink
Revert "cypress test fix attempt: added force: true option to cy.type"
Browse files Browse the repository at this point in the history
This reverts commit 59e006e.
  • Loading branch information
arkadius committed Jan 11, 2025
1 parent 59e006e commit e7008c8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions designer/client/cypress/e2e/fragment.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("Fragment", () => {

// Provide String Any Value inputMode
cy.get("@window").contains("+").click();
cy.get("[data-testid='fieldsRow:3']").find("[placeholder='Field name']").type("name_value_string_any_value", { force: true });
cy.get("[data-testid='fieldsRow:3']").find("[placeholder='Field name']").type("name_value_string_any_value");
toggleSettings(3);
cy.get("[data-testid='draggable:3'] [role='button']").dndTo("[data-testid='draggable:0']");
cy.get("[data-testid='fieldsRow:0']").find("[placeholder='Field name']").should("have.value", "name_value_string_any_value");
Expand All @@ -35,7 +35,7 @@ describe("Fragment", () => {

// Provide String Any with Suggestion Value inputMode
cy.get("@window").contains("+").click();
cy.get("[data-testid='fieldsRow:4']").find("[placeholder='Field name']").type("name_string_any_with_suggestion", { force: true });
cy.get("[data-testid='fieldsRow:4']").find("[placeholder='Field name']").type("name_string_any_with_suggestion");
toggleSettings(4);
cy.get("[data-testid='settings:4']").contains("Any value").select(1);

Expand Down Expand Up @@ -77,7 +77,7 @@ describe("Fragment", () => {

// Provide String Fixed value inputMode
cy.get("@window").contains("+").click();
cy.get("[data-testid='fieldsRow:5']").find("[placeholder='Field name']").type("name_string_fixed", { force: true });
cy.get("[data-testid='fieldsRow:5']").find("[placeholder='Field name']").type("name_string_fixed");
toggleSettings(5);
cy.get("[data-testid='settings:5']").contains("Any value").select(1);
cy.get("[data-testid='settings:5']").contains("User defined list").click();
Expand All @@ -98,7 +98,7 @@ describe("Fragment", () => {

// Provide non String or Boolean Any Value inputMode
cy.get("@window").contains("+").click();
cy.get("[data-testid='fieldsRow:6']").find("[placeholder='Field name']").type("non_boolean_or_string", { force: true });
cy.get("[data-testid='fieldsRow:6']").find("[placeholder='Field name']").type("non_boolean_or_string");
cy.get("[data-testid='fieldsRow:6']").contains("String").click();
cy.contains("Number").click({ force: true });
toggleSettings(6);
Expand All @@ -123,7 +123,7 @@ describe("Fragment", () => {

// Provide String Fixed value inputMode
cy.get("@window").contains("+").click();
cy.get("[data-testid='fieldsRow:7']").find("[placeholder='Field name']").type("any_value_with_suggestions_preset", { force: true });
cy.get("[data-testid='fieldsRow:7']").find("[placeholder='Field name']").type("any_value_with_suggestions_preset");
toggleSettings(7);

// Select any value with suggestions Input mode
Expand Down Expand Up @@ -160,7 +160,7 @@ describe("Fragment", () => {

// Provide String Fixed value inputMode
cy.get("@window").contains("+").click();
cy.get("[data-testid='fieldsRow:8']").find("[placeholder='Field name']").type("generic_type", { force: true });
cy.get("[data-testid='fieldsRow:8']").find("[placeholder='Field name']").type("generic_type");
cy.get("[data-testid='fieldsRow:8']").contains("String").click().type("List[String]{enter}");

cy.get("@window")
Expand Down Expand Up @@ -286,7 +286,7 @@ describe("Fragment", () => {
cy.get("[model-id=input]").should("be.visible").trigger("dblclick");
cy.get("[data-testid=window]").should("be.visible").as("window");
cy.get("@window").contains("+").click();
cy.get("[data-testid='fieldsRow:9']").find("[placeholder='Field name']").type("test5", { force: true });
cy.get("[data-testid='fieldsRow:9']").find("[placeholder='Field name']").type("test5");
cy.get("@window")
.contains(/^apply$/i)
.click();
Expand Down

0 comments on commit e7008c8

Please sign in to comment.