From 4d44d143b657f903ce646a7d51e72a60c51a3cc3 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Thu, 25 Jul 2024 16:56:09 -0700 Subject: [PATCH] Remove additional data source preview calls --- tests/e2e/specs/ComputedFieldsReadOnly.spec.js | 2 +- tests/e2e/specs/LoopSelectList.spec.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/e2e/specs/ComputedFieldsReadOnly.spec.js b/tests/e2e/specs/ComputedFieldsReadOnly.spec.js index 66306853f..1d3219bd7 100644 --- a/tests/e2e/specs/ComputedFieldsReadOnly.spec.js +++ b/tests/e2e/specs/ComputedFieldsReadOnly.spec.js @@ -177,7 +177,7 @@ describe("Computed fields", () => { }); }); - it.only("The user should not be able to change a FormDatePicker assigned to a computed property", () => { + it("The user should not be able to change a FormDatePicker assigned to a computed property", () => { cy.visit("/"); cy.openAcordeon("collapse-1"); // Add an input field diff --git a/tests/e2e/specs/LoopSelectList.spec.js b/tests/e2e/specs/LoopSelectList.spec.js index e5d13df8e..2208395a4 100644 --- a/tests/e2e/specs/LoopSelectList.spec.js +++ b/tests/e2e/specs/LoopSelectList.spec.js @@ -85,14 +85,13 @@ describe("Select List Cache", () => { }); cy.loadFromJson("loop_select_list.json", 0); - cy.wait("@getDataSource"); // designer call cy.get("[data-cy=mode-preview]").click(); cy.wait("@getDataSource"); cy.wait("@getDataSource"); cy.wait("@getDataSource"); cy.wait("@getDataSource"); cy.wait("@getDataSource"); - cy.get("@getDataSource.all").should("have.length", 6); + cy.get("@getDataSource.all").should("have.length", 5); }); it("Cached - Verify number of service calls for loop that contains a multiselect list", () => { @@ -105,15 +104,14 @@ describe("Select List Cache", () => { }); cy.loadFromJson("loop_select_list.json", 0); - cy.wait("@getDataSource"); // get data source from designer cy.wait(5000); cy.get("[data-cy=mode-preview]").click(); cy.wait("@getDataSource"); - cy.get("@getDataSource.all").should("have.length", 2); + cy.get("@getDataSource.all").should("have.length", 1); // testing cacheTimeout cy.wait(5000); cy.get("[data-cy=mode-preview]").click(); cy.wait("@getDataSource"); - cy.get("@getDataSource.all").should("have.length", 3); + cy.get("@getDataSource.all").should("have.length", 2); }); });