department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 198 forks source link

[Bug] cypress-testrail-helper utility-script not working #51446

Open tlei123 opened 1 year ago

tlei123 commented 1 year ago

What happened?

In local vets-website, cypress-testrail-helper (CTH) Node-script errored out trying to read Cypress configuration file.

Screenshot

image

Steps to Reproduce

NOTE: To fix/validate this bug, you must have integrated at least 1 Cypress-spec with TestRail & cypress-testrail-helper.*

IMPORTANT: Do NOT commit the auto-generated my-cypress-testrail.config.js file. Delete it; it should be git-ignored in the bugfix-branch.

* For bugfix validation, to find all CTH-integrated Cypress-specs in vets-website, search /src/applications folder [or your app folder] for JS files containing [TestRail-integrated]. Start CTH and when prompted provide spec filename [e.g., hlr-contact-loop].

Desired behavior

Acceptance Criteria

How to configure this issue

tlei123 commented 1 year ago

The error's due to Cypress 10 major-upgrade which changed its configuration-file format & name. The CTH script's utility-methods handling config-file read/write need to be refactored.

tlei123 commented 1 year ago

PR #23055 opened.