test conditionNode e2e (#4295)

* test conditionNode e2e

* test: conditionNode e2e

* test: conditionnode e2e
This commit is contained in:
hongboji 2024-05-09 13:42:14 +08:00 committed by GitHub
parent 9740bf89ba
commit 3c8c5813de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 24 additions and 0 deletions

View File

@ -81,6 +81,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.lorem.words(); const conditionalRightConstant = faker.lorem.words();
await page.waitForTimeout(500);
await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}=='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}=='${conditionalRightConstant}'`,
@ -197,6 +198,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.lorem.words(); const conditionalRightConstant = faker.lorem.words();
await page.waitForTimeout(500);
await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}=='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}=='${conditionalRightConstant}'`,
@ -313,6 +315,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.lorem.words(); const conditionalRightConstant = faker.lorem.words();
await page.waitForTimeout(500);
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`,
@ -429,6 +432,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.lorem.words(); const conditionalRightConstant = faker.lorem.words();
await page.waitForTimeout(500);
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`,
@ -568,6 +572,7 @@ test('Collection event add data trigger, determine the trigger node integer vari
await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click();
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
await page.waitForTimeout(500);
await page.keyboard.type('==', { delay: 50 }); await page.keyboard.type('==', { delay: 50 });
await page.getByLabel('variable-button').click(); await page.getByLabel('variable-button').click();
await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click();
@ -718,6 +723,7 @@ test('Collection event add data trigger, determine trigger node integer variable
await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click();
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
await page.waitForTimeout(500);
await page.keyboard.type('==', { delay: 50 }); await page.keyboard.type('==', { delay: 50 });
await page.getByLabel('variable-button').click(); await page.getByLabel('variable-button').click();
await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click();
@ -858,6 +864,7 @@ test('Collection event add data trigger, determine trigger node integer variable
await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click();
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
await page.waitForTimeout(500);
await page.keyboard.type('!=', { delay: 50 }); await page.keyboard.type('!=', { delay: 50 });
await page.getByLabel('variable-button').click(); await page.getByLabel('variable-button').click();
await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click();
@ -1002,6 +1009,7 @@ test('Collection event add data trigger, determine the trigger node integer vari
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.lorem.words(); const conditionalRightConstant = faker.lorem.words();
await page.waitForTimeout(500);
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`,

View File

@ -82,6 +82,7 @@ test('Collection event add data trigger, determine trigger node integer field va
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.number.int(); const conditionalRightConstant = faker.number.int();
await page.waitForTimeout(500);
await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 }); await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}==${conditionalRightConstant}`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}==${conditionalRightConstant}`,
@ -198,6 +199,7 @@ test('Collection event Add Data Trigger, determines that the trigger node intege
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.number.int(); const conditionalRightConstant = faker.number.int();
await page.waitForTimeout(500);
await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 }); await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}==${conditionalRightConstant}`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}==${conditionalRightConstant}`,
@ -311,6 +313,7 @@ test('Collection event Add Data Trigger, determines that the trigger node intege
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.number.int(); const conditionalRightConstant = faker.number.int();
await page.waitForTimeout(500);
await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 }); await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`,
@ -424,6 +427,7 @@ test('Collection event add data trigger, determines that the trigger node intege
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.number.int(); const conditionalRightConstant = faker.number.int();
await page.waitForTimeout(500);
await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 }); await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`,

View File

@ -81,6 +81,7 @@ test('Collection event Add Data Trigger, Formula engine, determines that the tri
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.string.alphanumeric(10); const conditionalRightConstant = faker.string.alphanumeric(10);
await page.waitForTimeout(500);
await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}=='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}=='${conditionalRightConstant}'`,
@ -163,6 +164,7 @@ test('Collection event Add Data Trigger, Formula engine, determines that the tri
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.string.alphanumeric(10); const conditionalRightConstant = faker.string.alphanumeric(10);
await page.waitForTimeout(500);
await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}=='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}=='${conditionalRightConstant}'`,
@ -243,6 +245,7 @@ test('Collection event Add Data Trigger, Formula engine, determines that the tri
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.string.alphanumeric(10); const conditionalRightConstant = faker.string.alphanumeric(10);
await page.waitForTimeout(500);
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`,
@ -324,6 +327,7 @@ test('Collection event Add Data Trigger, Formula engine, determines that the tri
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.string.alphanumeric(10); const conditionalRightConstant = faker.string.alphanumeric(10);
await page.waitForTimeout(500);
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 }); await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`,
@ -431,6 +435,7 @@ test('Collection event add data trigger, Formula engine, determine the trigger n
await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click();
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
await page.waitForTimeout(500);
await page.keyboard.type('==', { delay: 50 }); await page.keyboard.type('==', { delay: 50 });
await page.getByLabel('variable-button').click(); await page.getByLabel('variable-button').click();
await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click();
@ -541,6 +546,7 @@ test('Collection event add data trigger, Formula engine, determine trigger node
await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click();
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
await page.waitForTimeout(500);
await page.keyboard.type('==', { delay: 50 }); await page.keyboard.type('==', { delay: 50 });
await page.getByLabel('variable-button').click(); await page.getByLabel('variable-button').click();
await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click();
@ -649,6 +655,7 @@ test('Collection event add data trigger, Formula engine, determine trigger node
await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click();
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
await page.waitForTimeout(500);
await page.keyboard.type('!=', { delay: 50 }); await page.keyboard.type('!=', { delay: 50 });
await page.getByLabel('variable-button').click(); await page.getByLabel('variable-button').click();
await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click();
@ -759,6 +766,7 @@ test('Collection event add data trigger, Formula engine, determine the trigger n
await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger variables' }).click();
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
await page.waitForTimeout(500);
await page.keyboard.type('!=', { delay: 50 }); await page.keyboard.type('!=', { delay: 50 });
await page.getByLabel('variable-button').click(); await page.getByLabel('variable-button').click();
await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click();

View File

@ -82,6 +82,7 @@ test('Collection event add data trigger, Math engine, determine trigger node int
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.number.int(); const conditionalRightConstant = faker.number.int();
await page.waitForTimeout(500);
await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 }); await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}==${conditionalRightConstant}`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}==${conditionalRightConstant}`,
@ -165,6 +166,7 @@ test('Collection event Add Data Trigger, Math engine, determines that the trigge
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.number.int(); const conditionalRightConstant = faker.number.int();
await page.waitForTimeout(500);
await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 }); await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}==${conditionalRightConstant}`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}==${conditionalRightConstant}`,
@ -247,6 +249,7 @@ test('Collection event Add Data Trigger, Math engine, determines that the trigge
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.number.int(); const conditionalRightConstant = faker.number.int();
await page.waitForTimeout(500);
await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 }); await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`,
@ -329,6 +332,7 @@ test('Collection event add data trigger, Math engine, determines that the trigge
await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click(); await page.getByRole('menuitemcheckbox', { name: 'Trigger data' }).click();
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
const conditionalRightConstant = faker.number.int(); const conditionalRightConstant = faker.number.int();
await page.waitForTimeout(500);
await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 }); await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 });
await expect(conditionNode.conditionExpressionEditBox).toHaveText( await expect(conditionNode.conditionExpressionEditBox).toHaveText(
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`, `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`,