mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Resolve expressions for grandparent nodes (#5859)
* fix(editor): Resolve expressions for grandparent nodes * test: add tests * test: add tests for bug * test: add todos * test: lintfix * test: add small waits * test: add linking tests * test: add test for branch mapping * test: update workflow values * test: comment out test * test: fix up tests with new values * chore: remove todos * test: add ticket number for broken test * test: refactor a bit * test: uncomment * test: fix mapping test * fix: lint issue * test: split tests * Revert "test: split tests" 0290d51d7c983320a718346ccb80fbad93894c6e * test: update mousedown * test: split up tests * test: fix test * test: fix test * test: make less flaky * test: make less flaky * test: enable teset
This commit is contained in:
@@ -45,6 +45,12 @@ export class NDV extends BasePage {
|
||||
executePrevious: () => cy.getByTestId('execute-previous-node'),
|
||||
httpRequestNotice: () => cy.getByTestId('node-parameters-http-notice'),
|
||||
nthParam: (n: number) => cy.getByTestId('node-parameters').find('.parameter-item').eq(n),
|
||||
inputRunSelector: () => this.getters.inputPanel().findChildByTestId('run-selector'),
|
||||
outputRunSelector: () => this.getters.outputPanel().findChildByTestId('run-selector'),
|
||||
outputHoveringItem: () => this.getters.outputPanel().findChildByTestId('hovering-item'),
|
||||
inputHoveringItem: () => this.getters.inputPanel().findChildByTestId('hovering-item'),
|
||||
outputBranches: () => this.getters.outputPanel().findChildByTestId('branches'),
|
||||
inputBranches: () => this.getters.inputPanel().findChildByTestId('branches'),
|
||||
};
|
||||
|
||||
actions = {
|
||||
@@ -119,5 +125,29 @@ export class NDV extends BasePage {
|
||||
this.actions.editPinnedData();
|
||||
this.actions.savePinnedData();
|
||||
},
|
||||
changeInputRunSelector: (runName: string) => {
|
||||
this.getters.inputRunSelector().click();
|
||||
cy.get('.el-select-dropdown:visible .el-select-dropdown__item')
|
||||
.contains(runName)
|
||||
.click();
|
||||
},
|
||||
changeOutputRunSelector: (runName: string) => {
|
||||
this.getters.outputRunSelector().click();
|
||||
cy.get('.el-select-dropdown:visible .el-select-dropdown__item')
|
||||
.contains(runName)
|
||||
.click();
|
||||
},
|
||||
toggleOutputRunLinking: () => {
|
||||
this.getters.outputRunSelector().find('button').click();
|
||||
},
|
||||
toggleInputRunLinking: () => {
|
||||
this.getters.inputRunSelector().find('button').click();
|
||||
},
|
||||
switchOutputBranch: (name: string) => {
|
||||
this.getters.outputBranches().get('span').contains(name).click();
|
||||
},
|
||||
switchIntputBranch: (name: string) => {
|
||||
this.getters.inputBranches().get('span').contains(name).click();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user