Skip to content

Commit

Permalink
Merge pull request #956 from 07souravkunda/fix_filename_retries_a11y
Browse files Browse the repository at this point in the history
fix: filename for retries a11y
  • Loading branch information
pranavj1001 authored Jan 28, 2025
2 parents c0a748d + 796dcb0 commit b6963bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/accessibility-automation/cypress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ afterEach(() => {
let filePath = '';
if (attributes.invocationDetails !== undefined && attributes.invocationDetails.relativeFile !== undefined) {
filePath = attributes.invocationDetails.relativeFile;
} else if (attributes.prevAttempts && attributes.prevAttempts.length > 0) {
filePath = (attributes.prevAttempts[0].invocationDetails && attributes.prevAttempts[0].invocationDetails.relativeFile) || '';
}
const payloadToSend = {
"saveResults": shouldScanTestForAccessibility,
Expand Down

0 comments on commit b6963bb

Please sign in to comment.