2022-01-22 01:43:27 +13:00
|
|
|
import filterTests from "../support/filterTests"
|
2020-09-15 00:29:32 +12:00
|
|
|
|
2022-01-22 01:43:27 +13:00
|
|
|
filterTests(['smoke', 'all'], () => {
|
2022-02-18 03:06:17 +13:00
|
|
|
context("Create a automation", () => {
|
2022-01-22 01:43:27 +13:00
|
|
|
before(() => {
|
|
|
|
cy.login()
|
|
|
|
cy.createTestApp()
|
2020-10-05 23:13:09 +13:00
|
|
|
})
|
2020-09-15 00:29:32 +12:00
|
|
|
|
2022-01-22 01:43:27 +13:00
|
|
|
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({ force: true })
|
|
|
|
cy.wait(500)
|
|
|
|
cy.get(".spectrum-Button--cta").click()
|
|
|
|
})
|
2021-09-16 03:55:17 +12:00
|
|
|
|
2022-01-22 01:43:27 +13:00
|
|
|
// Setup trigger
|
|
|
|
cy.get(".spectrum-Picker-label").click()
|
|
|
|
cy.wait(500)
|
|
|
|
cy.contains("dog").click()
|
|
|
|
cy.wait(2000)
|
|
|
|
// Create action
|
|
|
|
cy.get('[aria-label="AddCircle"]').eq(1).click()
|
|
|
|
cy.get(".modal-inner-wrapper").within(() => {
|
|
|
|
cy.wait(1000)
|
|
|
|
cy.contains("Create Row").trigger('mouseover').click().click()
|
|
|
|
cy.get(".spectrum-Button--cta").click()
|
|
|
|
})
|
2022-03-02 00:58:20 +13:00
|
|
|
cy.get(".spectrum-Picker-label").eq(1).click()
|
2021-05-26 02:57:38 +12:00
|
|
|
cy.contains("dog").click()
|
2021-07-28 09:48:06 +12:00
|
|
|
cy.get(".spectrum-Textfield-input")
|
2022-04-12 20:15:40 +12:00
|
|
|
.first()
|
|
|
|
.type("{{ trigger.row.name }}", { parseSpecialCharSequences: false })
|
2021-07-28 09:48:06 +12:00
|
|
|
cy.get(".spectrum-Textfield-input")
|
2021-02-24 03:28:05 +13:00
|
|
|
.eq(1)
|
|
|
|
.type("11")
|
2022-01-22 01:43:27 +13:00
|
|
|
cy.contains("Finish and test automation").click()
|
|
|
|
|
|
|
|
cy.get(".modal-inner-wrapper").within(() => {
|
|
|
|
cy.wait(1000)
|
|
|
|
cy.get(".spectrum-Picker-label").click()
|
|
|
|
cy.contains("dog").click()
|
|
|
|
cy.wait(1000)
|
|
|
|
cy.get(".spectrum-Textfield-input")
|
|
|
|
.first()
|
|
|
|
.type("automationGoodboy")
|
|
|
|
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")
|
|
|
|
cy.contains("Test").click()
|
|
|
|
})
|
|
|
|
cy.contains("Data").click()
|
|
|
|
cy.contains("automationGoodboy")
|
2020-09-19 03:13:42 +12:00
|
|
|
})
|
2020-09-15 00:29:32 +12:00
|
|
|
})
|
|
|
|
})
|