Skip to content

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Dec 18, 2024

  • Added recursive folder search by a specified name.
  • Screenshots for failed tests are now correctly attached, even if the tests are located in subdirectories.

This pull request includes several changes to the qase-cypress package, focusing on fixing an issue with screenshot attachments for failed tests and updating the package version. The most important changes are the addition of a new method to search for folders by name and modifying the file search logic to correctly handle subdirectories.

Fixes and improvements:

Code changes:

  • qase-cypress/src/fileSearcher.ts: Modified the findFilesBeforeTime method to include screenshotFolderPath and specFileName parameters, and added logic to handle subdirectories. Introduced a new findFolderByName method to locate folders by name within a directory. [1] [2]
  • qase-cypress/src/reporter.ts: Updated the call to findFilesBeforeTime to use the new parameters for correctly searching screenshot folders.

…bdirectories

- Added recursive folder search by a specified name.
- Screenshots for failed tests are now correctly attached, even if the tests are located in subdirectories.
@gibiw gibiw force-pushed the fix/cypress_screenshots branch from eb22c5a to f9cb1a7 Compare December 18, 2024 15:09
@gibiw gibiw enabled auto-merge (rebase) December 18, 2024 15:14
@gibiw gibiw merged commit 6cb4caa into main Dec 18, 2024
41 checks passed
@gibiw gibiw deleted the fix/cypress_screenshots branch December 18, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants