From d8147d664735d81cb9c166705a29ff6eaa9a1acd Mon Sep 17 00:00:00 2001 From: Sanja Date: Tue, 8 Oct 2024 10:36:04 -0700 Subject: [PATCH] Fix failing tests to include screen_type in the intercept API call --- tests/e2e/specs/ScreenTemplateSection.spec.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/e2e/specs/ScreenTemplateSection.spec.js b/tests/e2e/specs/ScreenTemplateSection.spec.js index 2fa212c2f..1155fffae 100644 --- a/tests/e2e/specs/ScreenTemplateSection.spec.js +++ b/tests/e2e/specs/ScreenTemplateSection.spec.js @@ -25,10 +25,9 @@ it("Displays My Templates when My Templates button is clicked", () => { cy.get("[data-cy=screen-templates]").click(); cy.get("[data-cy=screen-templates-section]").should("be.visible"); - cy.intercept( "GET", - "/api/1.0/templates/screen?is_public=0", + "/api/1.0/templates/screen?is_public=0&screen_type=FORM", { statusCode: 200, body: { @@ -44,7 +43,7 @@ it("Displays My Templates when My Templates button is clicked", () => { media: [], name: "My Templates Test", screen_custom_css: null, - screen_type: "EMAIL", + screen_type: "FORM", template_media: [], updated_at: "2024-09-10T18:18:27+00:00", user_id: 1, @@ -73,7 +72,7 @@ it("Displays Shared Templates when Shared Templates button is clicked", () => { cy.intercept( "GET", - "/api/1.0/templates/screen?is_public=1", + "/api/1.0/templates/screen?is_public=1&screen_type=FORM", { statusCode: 200, body: {