|
|
@ -113,23 +113,26 @@ Cypress.Commands.add("addRow", values => { |
|
|
|
|
|
|
|
|
Cypress.Commands.add("createUser", (username, password, accessLevel) => { |
|
|
Cypress.Commands.add("createUser", (username, password, accessLevel) => { |
|
|
// Create User
|
|
|
// Create User
|
|
|
cy.get(".toprightnav > .settings").click() |
|
|
|
|
|
cy.contains("Users").click() |
|
|
cy.contains("Users").click() |
|
|
|
|
|
|
|
|
cy.get("[name=Name]") |
|
|
cy.contains("Create New Row").click() |
|
|
.first() |
|
|
|
|
|
.type(username) |
|
|
cy.get(".modal").within(() => { |
|
|
cy.get("[name=Password]") |
|
|
cy.get("input") |
|
|
.first() |
|
|
.first() |
|
|
.type(password) |
|
|
.type(password) |
|
|
cy.get("select") |
|
|
cy.get("input") |
|
|
.first() |
|
|
.eq(1) |
|
|
.select(accessLevel) |
|
|
.type(username) |
|
|
|
|
|
cy.get("select") |
|
|
// Save
|
|
|
.first() |
|
|
cy.get(".inputs") |
|
|
.select(accessLevel) |
|
|
.contains("Create") |
|
|
|
|
|
.click() |
|
|
// Save
|
|
|
|
|
|
cy.get(".buttons") |
|
|
|
|
|
.contains("Create Row") |
|
|
|
|
|
.click() |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
Cypress.Commands.add("addHeadlineComponent", text => { |
|
|
Cypress.Commands.add("addHeadlineComponent", text => { |
|
|
|