Skip to content

Commit

Permalink
Fix an issue in the UI tests with scrolling to APIRule Name
Browse files Browse the repository at this point in the history
  • Loading branch information
triffer committed May 23, 2024
1 parent aa7ae3a commit 9ebe553
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/ui/tests/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ module.exports = defineConfig({
],
supportFile: 'support/index.ts',
},
retries: {
runMode: 2,
}
});
5 changes: 3 additions & 2 deletions tests/ui/tests/support/input.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Cypress.Commands.add('inputClearAndType', (selector: string, newValue: string): void => {
cy.get(selector,)
cy.get(selector)
.find('input')
.click()
.scrollIntoView()
.click({force: true})
.clear({force: true})
.type(newValue, {force: true});
});

0 comments on commit 9ebe553

Please sign in to comment.