Updating tests

This commit is contained in:
Liyas Thomas
2020-03-12 21:46:37 +05:30
parent bd1d81c1b8
commit 5e5cdb181d

View File

@@ -13,13 +13,13 @@ describe("Proxy disabled - local request", () => {
describe("Proxy enabled - external request", () => { describe("Proxy enabled - external request", () => {
it("Enable the proxy and make a request to the real cat api", () => { it("Enable the proxy and make a request to the real cat api", () => {
cy.enableProxy("/?url=https://api.thecatapi.com&path=") cy.enableProxy("/?url=https://postwoman.io&path=/.netlify/functions/api")
.get("#send") .get("#send")
.click() .click()
.get("#response-details-wrapper", { timeout: 24000 }) .get("#response-details-wrapper", { timeout: 24000 })
.should("be.visible") .should("be.visible")
.should($wrapper => { .should($wrapper => {
expect($wrapper).to.contain("The Cat API") expect($wrapper).to.contain("Hello World")
}) })
}) })
}) })