From 00b623d82356f44270ffd7d93d98b974fe2910d4 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 25 Feb 2020 05:06:40 +0530 Subject: [PATCH] :white_check_mark: Updating tests --- tests/e2e/integration/proxy.spec.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/e2e/integration/proxy.spec.js b/tests/e2e/integration/proxy.spec.js index 5c7184855..131f1d7d0 100644 --- a/tests/e2e/integration/proxy.spec.js +++ b/tests/e2e/integration/proxy.spec.js @@ -12,15 +12,13 @@ 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() +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") + .get('#response-details-wrapper').should($wrapper => { + expect($wrapper).to.contain('Cat API') }) }) })