mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:25:57 +00:00
test conditionNode e2e (#4295)
* test conditionNode e2e * test: conditionNode e2e * test: conditionnode e2e
This commit is contained in:
parent
9740bf89ba
commit
3c8c5813de
@ -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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.lorem.words();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.lorem.words();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.lorem.words();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.lorem.words();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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 data' }).click();
|
||||
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type('==', { delay: 50 });
|
||||
await page.getByLabel('variable-button').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 data' }).click();
|
||||
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type('==', { delay: 50 });
|
||||
await page.getByLabel('variable-button').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 data' }).click();
|
||||
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type('!=', { delay: 50 });
|
||||
await page.getByLabel('variable-button').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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.lorem.words();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!='${conditionalRightConstant}'`,
|
||||
|
@ -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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.number.int();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.number.int();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.number.int();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.number.int();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`,
|
||||
|
@ -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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.string.alphanumeric(10);
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.string.alphanumeric(10);
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`=='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.string.alphanumeric(10);
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.string.alphanumeric(10);
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!='${conditionalRightConstant}'`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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 data' }).click();
|
||||
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type('==', { delay: 50 });
|
||||
await page.getByLabel('variable-button').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 data' }).click();
|
||||
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type('==', { delay: 50 });
|
||||
await page.getByLabel('variable-button').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 data' }).click();
|
||||
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type('!=', { delay: 50 });
|
||||
await page.getByLabel('variable-button').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 data' }).click();
|
||||
await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type('!=', { delay: 50 });
|
||||
await page.getByLabel('variable-button').click();
|
||||
await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click();
|
||||
|
@ -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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.number.int();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.number.int();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`==${conditionalRightConstant}`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.number.int();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`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: triggerNodeFieldDisplayName }).click();
|
||||
const conditionalRightConstant = faker.number.int();
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type(`!=${conditionalRightConstant}`, { delay: 50 });
|
||||
await expect(conditionNode.conditionExpressionEditBox).toHaveText(
|
||||
`Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}!=${conditionalRightConstant}`,
|
||||
|
Loading…
Reference in New Issue
Block a user