Updating tests

This commit is contained in:
Liyas Thomas
2020-02-25 19:03:07 +05:30
parent fbbe1a05a0
commit aeebe5015e

View File

@@ -12,13 +12,15 @@ 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://api.thecatapi.com&path=")
.get('#send').click() .get("#send")
.wait(500) .click()
.get('#response-details-wrapper').should($wrapper => { .wait(1000)
expect($wrapper).to.contain('Cat API') .get("#response-details-wrapper")
.should($wrapper => {
expect($wrapper).to.contain("Cat API")
}) })
}) })
}) })