✅ 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", () => {
|
||||
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')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user