Updating tests

This commit is contained in:
Liyas Thomas
2020-02-25 05:06:40 +05:30
committed by Dmitry Yankowski
parent d39b190788
commit 00b623d823

View File

@@ -12,15 +12,13 @@ describe("Proxy disabled - local request", () => {
})
})
describe("Proxy enabled - external request", () => {
it("Enable the proxy and make a request to the real cat api", () => {
cy.enableProxy("/?url=https://api.thecatapi.com&path=")
.get("#send")
.click()
describe('Proxy enabled - external request', () => {
it('Enable the proxy and make a request to the real cat api', () => {
cy.enableProxy('/?url=https://api.thecatapi.com&path=')
.get('#send').click()
.wait(500)
.get("#response-details-wrapper")
.should($wrapper => {
expect($wrapper).to.contain("Cat API")
.get('#response-details-wrapper').should($wrapper => {
expect($wrapper).to.contain('Cat API')
})
})
})