diff --git a/tests/e2e/integration/proxy.spec.js b/tests/e2e/integration/proxy.spec.js index ea555b3bc..0b22bf6bc 100644 --- a/tests/e2e/integration/proxy.spec.js +++ b/tests/e2e/integration/proxy.spec.js @@ -1,16 +1,3 @@ -describe("Proxy enabled - external request", () => { - it("Enable proxy and make a GET request to Postwoman API", () => { - cy.enableProxy("/?url=https://postwoman.io&path=/.netlify/functions/api") - .get("#send") - .click() - .get("#response-details-wrapper", { timeout: 24000 }) - .should("be.visible") - .should($wrapper => { - expect($wrapper).to.contain("Hello World") - }) - }) -}) - describe("Proxy disabled - local request", () => { it("Change default URL with query and make a request to local Cat API", () => { cy.seedAndVisit("catapi", "/?url=https://api.thecatapi.com&path=") @@ -23,3 +10,16 @@ describe("Proxy disabled - local request", () => { }) }) }) + +describe("Proxy enabled - external request", () => { + it("Enable proxy and make a GET request to Postwoman API", () => { + cy.enableProxy("/?url=https://postwoman.io&path=/.netlify/functions/api") + .get("#send") + .click() + .get("#response-details-wrapper", { timeout: 24000 }) + .should("be.visible") + .should($wrapper => { + expect($wrapper).to.contain("Hello World") + }) + }) +})