Skip to content

Commit

Permalink
Add retries to cypress for flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anvit committed Aug 8, 2024
1 parent a98cb56 commit 9e2e78f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = defineConfig({
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
retries: {'runMode': 2},
baseUrl: 'http://localhost:63001',
},
})
2 changes: 1 addition & 1 deletion plugins/arDominionB5Plugin/js/searchBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
);
},
searchPost: (response, $element) => {
if (response.length && $element.val().length >= 3) {
if (response?.length && $element?.val().length >= 3) {
$results.html(response);
dropdown.show();
} else {
Expand Down

0 comments on commit 9e2e78f

Please sign in to comment.