From 1a106558e25528b321cbf81fc5ec1dbd06a26eab Mon Sep 17 00:00:00 2001 From: 07souravkunda Date: Tue, 21 Jan 2025 21:04:25 +0530 Subject: [PATCH] fix: filename for retries a11y --- bin/accessibility-automation/cypress/index.js | 2 ++ 1 file changed, 2 insertions(+) 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,