Skip to content

Commit 87eafae

Browse files
committed
fix: undefined
1 parent 1a10655 commit 87eafae

File tree

1 file changed

+1
-1
lines changed
  • bin/accessibility-automation/cypress

1 file changed

+1
-1
lines changed

bin/accessibility-automation/cypress/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ afterEach(() => {
334334
if (attributes.invocationDetails !== undefined && attributes.invocationDetails.relativeFile !== undefined) {
335335
filePath = attributes.invocationDetails.relativeFile;
336336
} else if (attributes.prevAttempts && attributes.prevAttempts.length > 0) {
337-
filePath = attributes.prevAttempts[0].invocationDetails.relativeFile
337+
filePath = (attributes.prevAttempts[0].invocationDetails && attributes.prevAttempts[0].invocationDetails.relativeFile) || '';
338338
}
339339
const payloadToSend = {
340340
"saveResults": shouldScanTestForAccessibility,

0 commit comments

Comments
 (0)