Skip to content

Commit

Permalink
fix: undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
07souravkunda committed Jan 27, 2025
1 parent 1a10655 commit 87eafae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/accessibility-automation/cypress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ afterEach(() => {
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
filePath = (attributes.prevAttempts[0].invocationDetails && attributes.prevAttempts[0].invocationDetails.relativeFile) || '';
}
const payloadToSend = {
"saveResults": shouldScanTestForAccessibility,
Expand Down

0 comments on commit 87eafae

Please sign in to comment.