df43b270dc
-Changes made to reflect the new layouts of the test env --e.g. Changes to the app grid, changes to UI screens -Updated commands --New commands added & some updated -New tests --Revert App --AutoScreensUI --Change app icon and colour --Data source testing In particular to data source testing -I have a file for mySQL, PostgreSQL, Oracle, and REST. --enabled better regression testing for each Other changes made for: -QueryLevelTransformers tests -Table tests -Renaming applications -Automations -Multi-option datastype New env file added too
63 lines
1.7 KiB
JavaScript
63 lines
1.7 KiB
JavaScript
context("Create a automation", () => {
|
|
before(() => {
|
|
cy.login()
|
|
cy.createTestApp()
|
|
})
|
|
|
|
// https://on.cypress.io/interacting-with-elements
|
|
it("should create a automation", () => {
|
|
cy.createTestTableWithData()
|
|
cy.wait(2000)
|
|
cy.contains("Automate").click()
|
|
cy.get("[data-cy='new-screen'] > .spectrum-Icon").click()
|
|
cy.get(".modal-inner-wrapper").within(() => {
|
|
cy.get("input").type("Add Row")
|
|
cy.contains("Row Created").click()
|
|
cy.wait(500)
|
|
cy.get(".spectrum-Button--cta").click()
|
|
})
|
|
|
|
// Setup trigger
|
|
cy.contains("Setup").click()
|
|
cy.get(".spectrum-Picker-label").click()
|
|
cy.wait(500)
|
|
cy.contains("dog").click()
|
|
|
|
// Create action
|
|
cy.get('[aria-label="AddCircle"]').eq(1).click()
|
|
//cy.contains("Add Action").click()
|
|
cy.get(".modal-inner-wrapper").within(() => {
|
|
cy.wait(1000)
|
|
cy.contains("Create Row").trigger('mouseover').click().click()
|
|
cy.get(".spectrum-Button--cta").click()
|
|
})
|
|
cy.contains("Setup").click()
|
|
cy.get(".spectrum-Picker-label").click()
|
|
cy.contains("dog").click()
|
|
cy.get(".spectrum-Textfield-input")
|
|
.first()
|
|
.type("goodboy")
|
|
cy.get(".spectrum-Textfield-input")
|
|
.eq(1)
|
|
.type("11")
|
|
|
|
cy.contains("Run test").click()
|
|
cy.get(".modal-inner-wrapper").within(() => {
|
|
cy.wait(1000)
|
|
cy.get(".spectrum-Picker-label").click()
|
|
cy.contains("dog").click()
|
|
cy.get(".spectrum-Textfield-input")
|
|
.first()
|
|
.type("goodboy")
|
|
cy.get(".spectrum-Textfield-input")
|
|
.eq(1)
|
|
.type("11")
|
|
cy.get(".spectrum-Textfield-input")
|
|
.eq(2)
|
|
.type("123456")
|
|
cy.get(".spectrum-Textfield-input")
|
|
.eq(3)
|
|
.type("123456")
|
|
})
|
|
})
|
|
})
|