Skip to content

Commit

Permalink
Fix failing tests to include screen_type in the intercept API call
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjacornelius committed Oct 8, 2024
1 parent 7417bf1 commit d8147d6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/e2e/specs/ScreenTemplateSection.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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,
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit d8147d6

Please sign in to comment.