feat: Add assignment component with drag and drop to Set node (#8283)

Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
Elias Meire
2024-02-06 18:34:34 +01:00
committed by GitHub
parent c04f92f7fd
commit 2799de491b
53 changed files with 3296 additions and 1060 deletions

View File

@@ -94,6 +94,20 @@ export class NDV extends BasePage {
this.getters.filterComponent(paramName).getByTestId('filter-remove-condition').eq(index),
filterConditionAdd: (paramName: string) =>
this.getters.filterComponent(paramName).getByTestId('filter-add-condition'),
assignmentCollection: (paramName: string) =>
cy.getByTestId(`assignment-collection-${paramName}`),
assignmentCollectionAdd: (paramName: string) =>
this.getters.assignmentCollection(paramName).getByTestId('assignment-collection-drop-area'),
assignment: (paramName: string, index = 0) =>
this.getters.assignmentCollection(paramName).getByTestId('assignment').eq(index),
assignmentRemove: (paramName: string, index = 0) =>
this.getters.assignment(paramName, index).getByTestId('assignment-remove'),
assignmentName: (paramName: string, index = 0) =>
this.getters.assignment(paramName, index).getByTestId('assignment-name'),
assignmentValue: (paramName: string, index = 0) =>
this.getters.assignment(paramName, index).getByTestId('assignment-value'),
assignmentType: (paramName: string, index = 0) =>
this.getters.assignment(paramName, index).getByTestId('assignment-type-select'),
searchInput: () => cy.getByTestId('ndv-search'),
pagination: () => cy.getByTestId('ndv-data-pagination'),
nodeVersion: () => cy.getByTestId('node-version'),
@@ -235,6 +249,9 @@ export class NDV extends BasePage {
removeFilterCondition: (paramName: string, index: number) => {
this.getters.filterConditionRemove(paramName, index).click();
},
removeAssignment: (paramName: string, index: number) => {
this.getters.assignmentRemove(paramName, index).click();
},
setInvalidExpression: ({
fieldName,
invalidExpression,