Fixing CI Build

This commit is contained in:
Liyas Thomas
2020-06-22 08:30:18 +05:30
parent 923102a8bf
commit 0acb5c643c
2 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
import axios from "axios" import axios from "axios"
import { isJSONContentType } from "../utils/contenttypes" // import { isJSONContentType } from "../utils/contenttypes"
let cancelSource = axios.CancelToken.source() let cancelSource = axios.CancelToken.source()

View File

@@ -11,15 +11,15 @@
// }) // })
// }) // })
describe("Proxy enabled - external request", () => { // describe("Proxy enabled - external request", () => {
it("Enable proxy and make a GET request to Postwoman API", () => { // it("Enable proxy and make a GET request to Postwoman API", () => {
cy.enableProxy("/?url=https://postwoman.io&path=/.netlify/functions/api") // 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("Hello World") // expect($wrapper).to.contain("Hello World")
}) // })
}) // })
}) // })