This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch 3369-cypress-opc-ua-tests-fail-in-ci-pipeline
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to
refs/heads/3369-cypress-opc-ua-tests-fail-in-ci-pipeline by this push:
new b7b7173ac3 fix(#3369): Add timeout to select node
b7b7173ac3 is described below
commit b7b7173ac362ce8b2399d1a4b01546d21c77583b
Author: Philipp Zehnder <[email protected]>
AuthorDate: Thu Dec 5 11:57:14 2024 +0100
fix(#3369): Add timeout to select node
---
ui/cypress/support/utils/connect/OpcUaUtils.ts | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/ui/cypress/support/utils/connect/OpcUaUtils.ts
b/ui/cypress/support/utils/connect/OpcUaUtils.ts
index 31d3f7f326..5bd0e81ef2 100644
--- a/ui/cypress/support/utils/connect/OpcUaUtils.ts
+++ b/ui/cypress/support/utils/connect/OpcUaUtils.ts
@@ -31,9 +31,11 @@ export class OpcUaUtils {
ConnectUtils.selectAdapter(adapterInput.adapterType);
// Wait for the first static property to be rendered
- cy.dataCy(adapterInput.adapterConfiguration[0].selector).should(
- 'be.visible',
- );
+ cy.dataCy(adapterInput.adapterConfiguration[0].selector, {
+ timeout: 10000,
+ })
+ //.scrollIntoView()
+ .should('be.visible');
// Validate that no error is not shown when nothing is configured
cy.dataCy('reloading-nodes', { timeout: 3000 }).should('not.exist');
ErrorMessageUtils.getExceptionComponent().should('not.exist');