Skip to content

Commit bef6a92

Browse files
committed
Update cypress and fix flaky tests
Update cypress version, and add retries for flaky tests. Also add optional chaining to autocomplete to avoid generating js error messages when no autocomplete test results are present.
1 parent 3132937 commit bef6a92

File tree

4 files changed

+20
-136
lines changed

4 files changed

+20
-136
lines changed

cypress.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = defineConfig({
1111
setupNodeEvents(on, config) {
1212
return require('./cypress/plugins/index.js')(on, config)
1313
},
14+
retries: {'runMode': 2},
1415
baseUrl: 'http://localhost:63001',
1516
},
1617
})

package-lock.json

Lines changed: 17 additions & 134 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"devDependencies": {
2424
"css-loader": "^6.3.0",
25-
"cypress": "^13.7.1",
25+
"cypress": "^13.13.0",
2626
"cypress-file-upload": "^5.0.8",
2727
"cypress-wait-until": "^1.7.2",
2828
"expose-loader": "^3.0.0",

plugins/arDominionB5Plugin/js/searchBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
);
3333
},
3434
searchPost: (response, $element) => {
35-
if (response.length && $element.val().length >= 3) {
35+
if (response?.length && $element?.val().length >= 3) {
3636
$results.html(response);
3737
dropdown.show();
3838
} else {

0 commit comments

Comments
 (0)