app icon indicating copy to clipboard operation
app copied to clipboard

Duplication of the test folder in the project after it is renamed

Open dmrock opened this issue 1 year ago • 4 comments

Describe the bug Duplication of the test folder in the project after it is renamed.

To Reproduce Steps to reproduce the behavior:

  1. Import a new project from Playwright
  2. Rename the main folder
  3. Add new tests
  4. Run the script adding the tags to these tests
  5. Observe the project structure

Expected behavior All new tests are added to the existing folder and placed in the corresponding sub-folders.

Screenshots image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Browser Version 124.0.6367.119
  • Application: production

Additional context Each duplicated folder contains a different set of tests and sub-folders, but they can be duplicated.

dmrock avatar May 21 '24 21:05 dmrock

@DavertMik should be have some "move" mode for check-tests that will instruct to move already existed test cases to new locations? what do you think?

or we need some kind of "avoid duplication strategy"

poliarush avatar May 21 '24 21:05 poliarush

We can think on that However, as of now we can just prefer the file path when importing We already do that for files but we also need to do that for folders

DavertMik avatar May 21 '24 21:05 DavertMik

related to https://github.com/testomatio/safe-security-issues/issues/17

poliarush avatar May 21 '24 21:05 poliarush

@DavertMik the issue can be reproduced on our example project and [email protected]

https://github.com/user-attachments/assets/c798c9d2-4ac5-49d9-84e7-78e715ddd35c

TetianaKhomenko avatar Aug 28 '24 09:08 TetianaKhomenko

There were some fixes on this issue previously

Please retest

@TetianaKhomenko Also video is not complete so I don't see any duplication

DavertMik avatar Jan 06 '25 21:01 DavertMik