Fix part of workflow cypress tests
This commit is contained in:
parent
41aeec0c05
commit
f906ce0a83
|
@ -21,17 +21,25 @@ context("Create a workflow", () => {
|
||||||
// Add trigger
|
// Add trigger
|
||||||
cy.get("[data-cy=add-workflow-component]").click()
|
cy.get("[data-cy=add-workflow-component]").click()
|
||||||
cy.get("[data-cy=RECORD_SAVED]").click()
|
cy.get("[data-cy=RECORD_SAVED]").click()
|
||||||
cy.get(".budibase__input").select("dog")
|
cy.get("[data-cy=workflow-block-setup]").within(() => {
|
||||||
|
cy.get("select")
|
||||||
|
.first()
|
||||||
|
.select("dog")
|
||||||
|
})
|
||||||
|
|
||||||
// Create action
|
// Create action
|
||||||
cy.get("[data-cy=SAVE_RECORD]").click()
|
cy.get("[data-cy=SAVE_RECORD]").click()
|
||||||
cy.get(".budibase__input").select("dog")
|
cy.get("[data-cy=workflow-block-setup]").within(() => {
|
||||||
cy.get(".container input")
|
cy.get("select")
|
||||||
.first()
|
.first()
|
||||||
.type("goodboy")
|
.select("dog")
|
||||||
cy.get(".container input")
|
cy.get("input")
|
||||||
.eq(1)
|
.first()
|
||||||
.type("11")
|
.type("goodboy")
|
||||||
|
cy.get("input")
|
||||||
|
.eq(1)
|
||||||
|
.type("11")
|
||||||
|
})
|
||||||
|
|
||||||
// Save
|
// Save
|
||||||
cy.contains("Save Workflow").click()
|
cy.contains("Save Workflow").click()
|
||||||
|
@ -44,7 +52,6 @@ context("Create a workflow", () => {
|
||||||
|
|
||||||
it("should add record when a new record is added", () => {
|
it("should add record when a new record is added", () => {
|
||||||
cy.contains("backend").click()
|
cy.contains("backend").click()
|
||||||
|
|
||||||
cy.addRecord(["Rover", 15])
|
cy.addRecord(["Rover", 15])
|
||||||
cy.reload()
|
cy.reload()
|
||||||
cy.contains("goodboy").should("have.text", "goodboy")
|
cy.contains("goodboy").should("have.text", "goodboy")
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container" data-cy="workflow-block-setup">
|
||||||
<div class="block-label">{block.name}</div>
|
<div class="block-label">{block.name}</div>
|
||||||
{#each inputs as [key, value]}
|
{#each inputs as [key, value]}
|
||||||
<div class="bb-margin-xl block-field">
|
<div class="bb-margin-xl block-field">
|
||||||
|
|
Loading…
Reference in New Issue