Commit code with double quotes instead of single quotes
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
* @param { String } path The path or query parameters to go -ex. '/?path=/api/users'
|
||||
* @param { String } method The fake request method
|
||||
*/
|
||||
Cypress.Commands.add('seedAndVisit', (seedData, path = '/', method = 'GET') => {
|
||||
Cypress.Commands.add("seedAndVisit", (seedData, path = "/", method = "GET") => {
|
||||
cy.server()
|
||||
.route(method, 'https://api.thecatapi.com/', `fixture:${seedData}`)
|
||||
.as('load')
|
||||
.route(method, "https://api.thecatapi.com/", `fixture:${seedData}`)
|
||||
.as("load")
|
||||
|
||||
cy.visit(path)
|
||||
.get('#send')
|
||||
.get("#send")
|
||||
.click()
|
||||
.wait('@load')
|
||||
.wait("@load")
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -21,11 +21,11 @@ Cypress.Commands.add('seedAndVisit', (seedData, path = '/', method = 'GET') => {
|
||||
* This function will enable the proxy and navigate back to a given path
|
||||
* @param { String } goBackPath The page go back
|
||||
*/
|
||||
Cypress.Commands.add('enableProxy', goBackPath => {
|
||||
cy.visit('/settings')
|
||||
.get('#proxy')
|
||||
.find('.toggle')
|
||||
Cypress.Commands.add("enableProxy", goBackPath => {
|
||||
cy.visit("/settings")
|
||||
.get("#proxy")
|
||||
.find(".toggle")
|
||||
.click({ force: true })
|
||||
.should('have.class', 'on')
|
||||
.should("have.class", "on")
|
||||
.visit(goBackPath)
|
||||
})
|
||||
|
||||
@@ -1 +1 @@
|
||||
import './commands'
|
||||
import "./commands"
|
||||
|
||||
Reference in New Issue
Block a user