Skip to content

Commit

Permalink
fix(#3369): Add timeout to select node (#3370)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tenthe authored Dec 16, 2024
1 parent 03acc10 commit 83d172b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ui/cypress/support/utils/connect/OpcUaUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 83d172b

Please sign in to comment.