We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a10655 commit 87eafaeCopy full SHA for 87eafae
bin/accessibility-automation/cypress/index.js
@@ -334,7 +334,7 @@ afterEach(() => {
334
if (attributes.invocationDetails !== undefined && attributes.invocationDetails.relativeFile !== undefined) {
335
filePath = attributes.invocationDetails.relativeFile;
336
} else if (attributes.prevAttempts && attributes.prevAttempts.length > 0) {
337
- filePath = attributes.prevAttempts[0].invocationDetails.relativeFile
+ filePath = (attributes.prevAttempts[0].invocationDetails && attributes.prevAttempts[0].invocationDetails.relativeFile) || '';
338
}
339
const payloadToSend = {
340
"saveResults": shouldScanTestForAccessibility,
0 commit comments