Skip to content

Commit 75e0cbd

Browse files
authored
Allow aborted request to fail silently (#558)
1 parent b47478c commit 75e0cbd

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

cypress/integration/1_new_engagement_spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ describe('new engagement', () => {
2626
cy.contains('Engagements');
2727
cy.contains('Create New').click();
2828
cy.toggleNav();
29-
30-
cy.wait('@getConfig');
29+
cy.wait('@getConfig', { timeout: 5000 });
3130

3231
cy.get('[id=customer_dropdown-select-typeahead]')
3332
.type(customerName)

cypress/support/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,16 @@
1616
// Import commands.js using ES2015 syntax:
1717
import './commands'
1818

19+
Cypress.on('uncaught:exception', (err, runnable) => {
20+
console.log('LodeStar uncaught exception');
21+
console.log(err);
22+
console.log(err.request);
23+
24+
if(err.request == null || err.request.aborted == null) {
25+
return true;
26+
}
27+
return !err.request.aborted;
28+
})
29+
1930
// Alternatively you can use CommonJS syntax:
2031
// require('./commands')

0 commit comments

Comments
 (0)