You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using cypress open and the "Run # integration specs" Cypress.spec.name returns "All Integration Specs" rather than the name of the spec file executing at the time.
Desired behavior
Cypress should return the name of the spec file being executed, rather than the summary string which is unrelated to any filenames used by the specs being executed
Open cypress using "cypress open"
Click an individual integration test file --> works as expected (returns "SpecFileA.spec.js" and "SpecFileB.spec.js")
Click the "Run 2 integration specs" option on the right hand side --> returns "All Integration Specs" for both Spec files
Note that it does seem to work via cypress run - it's the interactive version which seems broken.
Cypress Version
8.7.0
Other
No response
The text was updated successfully, but these errors were encountered:
Return value of Cypress.spec via cypress open and running all files
{
"name": "All Integration Specs",
"absolute": "__all",
"relative": "__all",
"specType": "integration",
"specFilter": null
}
When executing a single spec file (Application.int.test.js):
{
"name": "Application.int.test.js",
"absolute": "/Users/myaccount/Projects/testing-cy-spec/cypress/integration/Application.int.test.js",
"relative": "cypress/integration/Application.int.test.js",
"specType": "integration",
"specFilter": null
}
Current behavior
When using cypress open and the "Run # integration specs" Cypress.spec.name returns "All Integration Specs" rather than the name of the spec file executing at the time.
Desired behavior
Cypress should return the name of the spec file being executed, rather than the summary string which is unrelated to any filenames used by the specs being executed
Test code to reproduce
Create:
/cypress/integration/SpecFileA.spec.js
/cypress/integration/SpecFileB.spec.js
Open cypress using "cypress open"
Click an individual integration test file --> works as expected (returns "SpecFileA.spec.js" and "SpecFileB.spec.js")
Click the "Run 2 integration specs" option on the right hand side --> returns "All Integration Specs" for both Spec files
Note that it does seem to work via cypress run - it's the interactive version which seems broken.
Cypress Version
8.7.0
Other
No response
The text was updated successfully, but these errors were encountered: