pr comment
This commit is contained in:
parent
62b94111cc
commit
4bc30a0187
|
@ -445,11 +445,8 @@ describe("Automation Scenarios", () => {
|
||||||
]
|
]
|
||||||
|
|
||||||
it.each(testCases)(
|
it.each(testCases)(
|
||||||
"should pass the filter when condition is %s",
|
"should pass the filter when condition is $condition",
|
||||||
async ({ condition, value, rowValue, expectPass }) => {
|
async ({ condition, value, rowValue, expectPass }) => {
|
||||||
it(`should ${
|
|
||||||
expectPass ? "pass" : "fail"
|
|
||||||
} the filter when condition is "${condition}" and value is ${value}`, async () => {
|
|
||||||
const builder = createAutomationBuilder({
|
const builder = createAutomationBuilder({
|
||||||
name: `Test ${condition}`,
|
name: `Test ${condition}`,
|
||||||
})
|
})
|
||||||
|
@ -472,9 +469,7 @@ describe("Automation Scenarios", () => {
|
||||||
value,
|
value,
|
||||||
})
|
})
|
||||||
.serverLog({
|
.serverLog({
|
||||||
text: `${condition} condition ${
|
text: `${condition} condition ${expectPass ? "passed" : "failed"}`,
|
||||||
expectPass ? "passed" : "failed"
|
|
||||||
}`,
|
|
||||||
})
|
})
|
||||||
.run()
|
.run()
|
||||||
|
|
||||||
|
@ -484,7 +479,6 @@ describe("Automation Scenarios", () => {
|
||||||
} else {
|
} else {
|
||||||
expect(results.steps[3]).toBeUndefined()
|
expect(results.steps[3]).toBeUndefined()
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue