|
|
|
@ -6,11 +6,11 @@ filterTests(["smoke", "all"], () => { |
|
|
|
before(() => { |
|
|
|
cy.login() |
|
|
|
cy.deleteApp("Cypress Tests") |
|
|
|
cy.createApp("Cypress Tests") |
|
|
|
cy.createApp("Cypress Tests", false) |
|
|
|
}) |
|
|
|
|
|
|
|
it("should create a user via basic onboarding", () => { |
|
|
|
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 1000}) |
|
|
|
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000}) |
|
|
|
cy.createUser("bbuser@test.com") |
|
|
|
cy.get(interact.SPECTRUM_TABLE).should("contain", "bbuser") |
|
|
|
}) |
|
|
|
@ -45,15 +45,16 @@ filterTests(["smoke", "all"], () => { |
|
|
|
if(i < 1){ |
|
|
|
cy.createApp(name) |
|
|
|
} else { |
|
|
|
cy.visit(`${Cypress.config().baseUrl}/builder`) |
|
|
|
cy.get(interact.CREATE_APP_BUTTON, { timeout: 1000 }).click({ force: true }) |
|
|
|
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000}) |
|
|
|
cy.wait(1000) |
|
|
|
cy.get(interact.CREATE_APP_BUTTON, { timeout: 2000 }).click({ force: true }) |
|
|
|
cy.createAppFromScratch(name) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
// Navigate back to the user
|
|
|
|
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 500}) |
|
|
|
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000}) |
|
|
|
cy.get(interact.SPECTRUM_SIDENAV).contains("Users").click() |
|
|
|
cy.get(interact.SPECTRUM_TABLE, { timeout: 500 }).contains("bbuser").click() |
|
|
|
for (let i = 0; i < 3; i++) { |
|
|
|
@ -173,14 +174,16 @@ filterTests(["smoke", "all"], () => { |
|
|
|
|
|
|
|
it("Should edit user details within user details page", () => { |
|
|
|
// Add First name
|
|
|
|
cy.get(interact.FIELD, { timeout: 500 }).eq(2).within(() => { |
|
|
|
cy.get(interact.SPECTRUM_TEXTFIELD_INPUT, { timeout: 500 }).type("bb") |
|
|
|
cy.get(interact.FIELD, { timeout: 1000 }).eq(2).within(() => { |
|
|
|
cy.wait(500) |
|
|
|
cy.get(interact.SPECTRUM_TEXTFIELD_INPUT, { timeout: 1000 }).wait(500).clear().click().type("bb") |
|
|
|
}) |
|
|
|
// Add Last name
|
|
|
|
cy.get(interact.FIELD).eq(3).within(() => { |
|
|
|
cy.get(interact.SPECTRUM_TEXTFIELD_INPUT).type("test") |
|
|
|
cy.get(interact.FIELD, { timeout: 1000 }).eq(3).within(() => { |
|
|
|
cy.wait(500) |
|
|
|
cy.get(interact.SPECTRUM_TEXTFIELD_INPUT, { timeout: 1000 }).click().wait(500).clear().type("test") |
|
|
|
}) |
|
|
|
cy.get(interact.FIELD).eq(0).click() |
|
|
|
cy.get(interact.FIELD, { timeout: 1000 }).eq(0).click() |
|
|
|
// Reload page
|
|
|
|
cy.reload() |
|
|
|
|
|
|
|
@ -188,8 +191,8 @@ filterTests(["smoke", "all"], () => { |
|
|
|
cy.get(interact.FIELD, { timeout: 1000 }).eq(2).within(() => { |
|
|
|
cy.get(interact.SPECTRUM_TEXTFIELD_INPUT).should('have.value', "bb") |
|
|
|
}) |
|
|
|
cy.get(interact.FIELD).eq(3).within(() => { |
|
|
|
cy.get(interact.SPECTRUM_TEXTFIELD_INPUT, { timeout: 500 }).should('have.value', "test") |
|
|
|
cy.get(interact.FIELD, { timeout: 1000 }).eq(3).within(() => { |
|
|
|
cy.get(interact.SPECTRUM_TEXTFIELD_INPUT, { timeout: 1000 }).should('have.value', "test") |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|