This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 83d172bd77 fix(#3369): Add timeout to select node (#3370)
83d172bd77 is described below
commit 83d172bd77b9876305e2df1ccf3d27b38bf8798d
Author: Philipp Zehnder <[email protected]>
AuthorDate: Mon Dec 16 11:11:50 2024 +0100
fix(#3369): Add timeout to select node (#3370)
* fix(#3369): Add timeout to select node
* fix(#3369): Remove unused comment
* fix(#3369): Test fo fail test
* fix(#3369): Tried to fix flaky test with scrollIntoView
---
ui/cypress/support/utils/connect/OpcUaUtils.ts | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ui/cypress/support/utils/connect/OpcUaUtils.ts
b/ui/cypress/support/utils/connect/OpcUaUtils.ts
index 31d3f7f326..e007119445 100644
--- a/ui/cypress/support/utils/connect/OpcUaUtils.ts
+++ b/ui/cypress/support/utils/connect/OpcUaUtils.ts
@@ -31,9 +31,12 @@ 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');