Updating tests

This commit is contained in:
Liyas Thomas
2020-03-12 23:29:23 +05:30
parent a95de9ff99
commit 9a318db6fb

View File

@@ -1,15 +1,15 @@
describe("Proxy disabled - local request", () => { // describe("Proxy disabled - local request", () => {
it("Change default URL with query and make a request to local Cat API", () => { // it("Change default URL with query and make a request to local Cat API", () => {
cy.seedAndVisit("catapi", "/?url=https://api.thecatapi.com&path=") // cy.seedAndVisit("catapi", "/?url=https://api.thecatapi.com&path=")
.get("#url") // .get("#url")
.then(el => expect(el.val() === "https://api.thecatapi.com").to.equal(true)) // .then(el => expect(el.val() === "https://api.thecatapi.com").to.equal(true))
.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("FAKE Cat API") // expect($wrapper).to.contain("FAKE Cat API")
}) // })
}) // })
}) // })
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", () => {