Skip to content

Commit b6963bb

Browse files
authored
Merge pull request #956 from 07souravkunda/fix_filename_retries_a11y
fix: filename for retries a11y
2 parents c0a748d + 796dcb0 commit b6963bb

File tree

1 file changed

+2
-0
lines changed
  • bin/accessibility-automation/cypress

1 file changed

+2
-0
lines changed

bin/accessibility-automation/cypress/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ afterEach(() => {
333333
let filePath = '';
334334
if (attributes.invocationDetails !== undefined && attributes.invocationDetails.relativeFile !== undefined) {
335335
filePath = attributes.invocationDetails.relativeFile;
336+
} else if (attributes.prevAttempts && attributes.prevAttempts.length > 0) {
337+
filePath = (attributes.prevAttempts[0].invocationDetails && attributes.prevAttempts[0].invocationDetails.relativeFile) || '';
336338
}
337339
const payloadToSend = {
338340
"saveResults": shouldScanTestForAccessibility,

0 commit comments

Comments
 (0)