test: workflow aggregate node e2e (#3342)

This commit is contained in:
hongboji 2024-01-07 19:52:01 +08:00 committed by GitHub
parent 908944ce62
commit 3c87755e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2136 additions and 484 deletions

View File

@ -377,6 +377,7 @@ export class AggregateNode {
linkedDataTableDataRadio: Locator;
collectionDropDown: Locator;
aggregatedFieldDropDown: Locator;
distinctCheckBox: Locator;
submitButton: Locator;
cancelButton: Locator;
addNodeButton: Locator;
@ -399,6 +400,9 @@ export class AggregateNode {
this.aggregatedFieldDropDown = page.locator(
'input.ant-select-selection-search-input[role="combobox"][aria-haspopup="listbox"]',
);
this.distinctCheckBox = page
.getByLabel('block-item-Checkbox-workflows-Distinct')
.locator('input.ant-checkbox-input[type="checkbox"]');
this.submitButton = page.getByLabel('action-Action-Submit-workflows');
this.cancelButton = page.getByLabel('action-Action-Cancel-workflows');
this.addNodeButton = page.getByLabel(`add-button-aggregate-${nodeName}`, { exact: true });