✅ Updating tests
This commit is contained in:
committed by
Dmitry Yankowski
parent
d39b190788
commit
00b623d823
@@ -12,15 +12,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://api.thecatapi.com&path=')
|
||||||
.get("#send")
|
.get('#send').click()
|
||||||
.click()
|
|
||||||
.wait(500)
|
.wait(500)
|
||||||
.get("#response-details-wrapper")
|
.get('#response-details-wrapper').should($wrapper => {
|
||||||
.should($wrapper => {
|
expect($wrapper).to.contain('Cat API')
|
||||||
expect($wrapper).to.contain("Cat API")
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user