Skip to content

Commit

Permalink
Remove additional data source preview calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanpro committed Jul 25, 2024
1 parent 3cb692e commit 4d44d14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/specs/ComputedFieldsReadOnly.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions tests/e2e/specs/LoopSelectList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand All @@ -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);
});
});

0 comments on commit 4d44d14

Please sign in to comment.