This is an automated email from the ASF dual-hosted git repository. zehnder pushed a commit to branch e2e-opcua in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit af11fdea4213c1eb28ee422b400e52a94c8b158c Author: Philipp Zehnder <[email protected]> AuthorDate: Tue Sep 16 13:49:30 2025 +0200 fix: Change opc ua e2e tests --- ui/cypress/support/utils/connect/OpcUaUtils.ts | 20 +++++++++++++++++++- .../static-tree-input-button-menu.component.html | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ui/cypress/support/utils/connect/OpcUaUtils.ts b/ui/cypress/support/utils/connect/OpcUaUtils.ts index e007119445..a423c305e5 100644 --- a/ui/cypress/support/utils/connect/OpcUaUtils.ts +++ b/ui/cypress/support/utils/connect/OpcUaUtils.ts @@ -41,7 +41,25 @@ export class OpcUaUtils { cy.dataCy('reloading-nodes', { timeout: 3000 }).should('not.exist'); ErrorMessageUtils.getExceptionComponent().should('not.exist'); - StaticPropertyUtils.input(adapterInput.adapterConfiguration); + // The opc ua tests started to become flaky, therefore I split up the configurations of tree and non tree configs + // First the adapter is configured, then the tree is loaded before the tree configurations are added + const nonTreeConfigs = adapterInput.adapterConfiguration.filter( + config => config.type !== 'tree', + ); + StaticPropertyUtils.input(nonTreeConfigs); + + this.reloadTreeNodeSelection(); + + const treeConfigs = adapterInput.adapterConfiguration.filter( + config => config.type === 'tree', + ); + StaticPropertyUtils.input(treeConfigs); + } + + public static reloadTreeNodeSelection() { + cy.dataCy('reload-tree-node-selection-btn').click(); + cy.dataCy('reloading-nodes', { timeout: 10000 }).should('exist'); + cy.dataCy('reloading-nodes', { timeout: 10000 }).should('not.exist'); } public static getAdapterBuilderWithTreeNodes(pullMode: boolean) { diff --git a/ui/src/app/core-ui/static-properties/static-runtime-resolvable-tree-input/static-tree-input-button-menu/static-tree-input-button-menu.component.html b/ui/src/app/core-ui/static-properties/static-runtime-resolvable-tree-input/static-tree-input-button-menu/static-tree-input-button-menu.component.html index 4e6b8f55c8..987cf887e7 100644 --- a/ui/src/app/core-ui/static-properties/static-runtime-resolvable-tree-input/static-tree-input-button-menu/static-tree-input-button-menu.component.html +++ b/ui/src/app/core-ui/static-properties/static-runtime-resolvable-tree-input/static-tree-input-button-menu/static-tree-input-button-menu.component.html @@ -37,6 +37,7 @@ style="margin-right: 10px" *ngIf="editorMode === 'tree'" [disabled]="!showOptions" + data-cy="reload-tree-node-selection-btn" > <span>{{ 'Reload' | translate }}</span> </button>
