This commit is contained in:
mike12345567 2021-04-15 13:23:42 +01:00
parent 52920beb78
commit 68c113225e
1 changed files with 3 additions and 3 deletions

View File

@ -24,15 +24,15 @@
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
Cypress.Commands.add("login", name => {
Cypress.Commands.add("login", () => {
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
cy.contains("Create Test User").click()
cy.get("input")
.first()
.type("test@test.com")
cy.get('input[type="password"]').type("test")
cy.contains("Login").click()
cy.wait(1000)
})