cypress tests fail with "Webpack Compilation Error"

Description

Overview: Running tests on the master branch now fails with a webpack error:

Steps to Reproduce:

  • Clone the repository

  • yarn to install dependencies

  • yarn test:cypress:snapshot to run Cypress tests

Expected Results: Cypress tests run
Actual Results: Cypress tests fail

Interested parties: ,

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Zak Burke September 20, 2022 at 12:45 PM

The @testing-library/dom bug was patched in v8.18.1. I opened an issue and corresponding PR with @interactors/core to bump the minimum version to avoid the buggy one, but if semver and yarn/npm do their jobs (and your npm cache has cleared the buggy version), we should get the patched version automatically. 

IOW, we've done what we can, and I think this is safe to close. If we wanted to be cautious, we could keep this open until the @interactors/core PR is merged and incorporated into a release but I think that's overkill. If you agree, , please close this as "Done". If not, please leave a comment with proposed next steps. 

Zak Burke September 19, 2022 at 6:14 PM

I initially worried about a TypeScript PR we merged in stripes-webpack last week (STRWEB-54), but further investigation shows this is due to a bug in version v8.18.0 of @testing-library/dom.

A short-term workaround is to pin to version 8.17.1 via a resolutions entry in the package.json entry for stripes-testing. Long term, we'll need to wait for a patch release of @testing-library/dom and corresponding releases of @interactors/html and @interactors/core since that where this dependency originates:

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Stripes Force

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created September 19, 2022 at 6:06 PM
Updated September 20, 2022 at 12:56 PM
Resolved September 20, 2022 at 12:56 PM
TestRail: Cases
TestRail: Runs