Skip to content

Commit

Permalink
fix(#3369): Tried to fix flaky test with scrollIntoView
Browse files Browse the repository at this point in the history
  • Loading branch information
tenthe committed Dec 5, 2024
1 parent 0e2c80d commit d9d1d80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/cypress/support/utils/connect/OpcUaUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export class OpcUaUtils {
ConnectUtils.selectAdapter(adapterInput.adapterType);

// Wait for the first static property to be rendered
// cy.dataCy(adapterInput.adapterConfiguration[0].selector, {
// timeout: 10000,
// }).should('be.visible');
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 d9d1d80

Please sign in to comment.