wp-cypress icon indicating copy to clipboard operation
wp-cypress copied to clipboard

Cucumber multi-wp installs

Open ampersarnie opened this issue 2 years ago • 2 comments

Description

There have been difficulties getting Cucumber and .feature files running on multi-wp testing setups. This seems to be happening because during the copy and parse of the test files, WP-Cypress is attempting to parse .feature files as though they are .js files. This parsing is not required for these files, so they can and should be skipped.

Change Log

  • Adds file check to parse script.

Screenshots/Videos

If PR includes visual changes, please include a screenshot (or short video if applicable). Screenshot 2022-07-17 at 23 14 09

Types of changes (if applicable):

  • [x] Bug fix (non-breaking change which fixes an issue).
  • [ ] New feature (non-breaking change which adds functionality).
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist (if applicable):

  • [x] Meets provided linting standards.

ampersarnie avatar Jul 17 '22 22:07 ampersarnie

@ampersarnie I'm having trouble reproducing the problem you described. Does this problem only occur if your different sites have different versions of WordPress installed?

PaulREnglish avatar Aug 02 '22 11:08 PaulREnglish

@PaulREnglish I'll put together an example repo for you so you can test this.

ampersarnie avatar Aug 02 '22 11:08 ampersarnie