Commit code with double quotes instead of single quotes
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
describe('Proxy disabled - local request', () => {
|
||||
it('Change default url with query and make a request to local cat api', () => {
|
||||
cy.seedAndVisit('catapi', '/?url=https://api.thecatapi.com&path=')
|
||||
.get('#url')
|
||||
.then(el => expect(el.val() === 'https://api.thecatapi.com').to.equal(true))
|
||||
.get('#path')
|
||||
.then(el => expect(el.val() === '').to.equal(true))
|
||||
.get('#response-details-wrapper')
|
||||
describe("Proxy disabled - local request", () => {
|
||||
it("Change default url with query and make a request to local cat api", () => {
|
||||
cy.seedAndVisit("catapi", "/?url=https://api.thecatapi.com&path=")
|
||||
.get("#url")
|
||||
.then(el => expect(el.val() === "https://api.thecatapi.com").to.equal(true))
|
||||
.get("#path")
|
||||
.then(el => expect(el.val() === "").to.equal(true))
|
||||
.get("#response-details-wrapper")
|
||||
.should($wrapper => {
|
||||
expect($wrapper).to.contain('FAKE Cat API')
|
||||
expect($wrapper).to.contain("FAKE Cat API")
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
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')
|
||||
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()
|
||||
.get('#response-details-wrapper')
|
||||
.get("#response-details-wrapper")
|
||||
.should($wrapper => {
|
||||
expect($wrapper).to.contain('Cat API')
|
||||
expect($wrapper).to.contain("Cat API")
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user