From aeebe5015efe86cf40a422fc42d70ae6382420a7 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 25 Feb 2020 19:03:07 +0530 Subject: [PATCH 1/2] Updating tests --- tests/e2e/integration/proxy.spec.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/e2e/integration/proxy.spec.js b/tests/e2e/integration/proxy.spec.js index 131f1d7d0..bd0242379 100644 --- a/tests/e2e/integration/proxy.spec.js +++ b/tests/e2e/integration/proxy.spec.js @@ -12,13 +12,15 @@ describe("Proxy disabled - local request", () => { }) }) -describe('Proxy enabled - external request', () => { - it('Enable the proxy and make a request to the real cat api', () => { - cy.enableProxy('/?url=https://api.thecatapi.com&path=') - .get('#send').click() - .wait(500) - .get('#response-details-wrapper').should($wrapper => { - expect($wrapper).to.contain('Cat API') +describe("Proxy enabled - external request", () => { + it("Enable the proxy and make a request to the real cat api", () => { + cy.enableProxy("/?url=https://api.thecatapi.com&path=") + .get("#send") + .click() + .wait(1000) + .get("#response-details-wrapper") + .should($wrapper => { + expect($wrapper).to.contain("Cat API") }) }) }) From 77b50c0be32039fe8d315287a232373cdbf70d2f Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 25 Feb 2020 20:06:58 +0530 Subject: [PATCH 2/2] Updating tests --- tests/e2e/integration/proxy.spec.js | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/e2e/integration/proxy.spec.js b/tests/e2e/integration/proxy.spec.js index bd0242379..455bc3f86 100644 --- a/tests/e2e/integration/proxy.spec.js +++ b/tests/e2e/integration/proxy.spec.js @@ -17,7 +17,6 @@ describe("Proxy enabled - external request", () => { cy.enableProxy("/?url=https://api.thecatapi.com&path=") .get("#send") .click() - .wait(1000) .get("#response-details-wrapper") .should($wrapper => { expect($wrapper).to.contain("Cat API")