1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00
This commit is contained in:
mike12345567 2021-04-15 13:23:42 +01:00
parent fe6d31d880
commit 0d65aac9a4

View file

@ -24,7 +24,7 @@
// -- This will overwrite an existing command -- // -- This will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
Cypress.Commands.add("login", name => { Cypress.Commands.add("login", () => {
cy.visit(`localhost:${Cypress.env("PORT")}/builder`) cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
cy.contains("Create Test User").click() cy.contains("Create Test User").click()
cy.get("input") cy.get("input")