diff --git a/bin/accessibility-automation/cypress/index.js b/bin/accessibility-automation/cypress/index.js index 994cdaaf..dceafefa 100644 --- a/bin/accessibility-automation/cypress/index.js +++ b/bin/accessibility-automation/cypress/index.js @@ -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.relativeFile } const payloadToSend = { "saveResults": shouldScanTestForAccessibility,