In local vets-website, cypress-testrail-helper (CTH) Node-script errored out trying to read Cypress configuration file.
Screenshot
Steps to Reproduce
NOTE: To fix/validate this bug, you must have integrated at least 1 Cypress-spec with TestRail & cypress-testrail-helper.*
Start local vets-website at main branch.
In separate Terminal, at project-root, start CTH:
yarn cy:my-testrail-helper
Observe that Cannot find module error is thrown, and script-process exits with code 1 [error], before prompting for the Cypress-spec filename.*
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
[x] Script should prompt for Cypress-spec filename, complete spec-run child-process, exit with code 0, and finally return CLI-prompt.
Acceptance Criteria
[ ] Test results successfully posted to TestRail.
How to configure this issue
[ ] Attached to a Milestone (when will this be completed?)
[ ] Attached to Epic (what body of work is this a part of? possibly Ongoing Maintenance)
[x] Labeled with Team (product support, analytics-insights, operations, triage, tools-improvements)
[x] Labeled with Practice Area (backend, frontend, devops, design, research, product, ia, qa, analytics, contact center, research, accessibility, content)
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.
What happened?
In local vets-website, cypress-testrail-helper (CTH) Node-script errored out trying to read Cypress configuration file.
Screenshot
Steps to Reproduce
NOTE: To fix/validate this bug, you must have integrated at least 1 Cypress-spec with TestRail & cypress-testrail-helper.*
Cannot find module
error is thrown, and script-process exits with code 1 [error], before prompting for the Cypress-spec filename.*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
Ongoing Maintenance
)product support
,analytics-insights
,operations
,triage
,tools-improvements
)backend
,frontend
,devops
,design
,research
,product
,ia
,qa
,analytics
,contact center
,research
,accessibility
,content
)Bug