✅ Updating tests
This commit is contained in:
@@ -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")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user