Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress.spec returns "All Integration Specs" via cypress open #18835

Closed
AussieFlem opened this issue Nov 9, 2021 · 2 comments
Closed

Cypress.spec returns "All Integration Specs" via cypress open #18835

AussieFlem opened this issue Nov 9, 2021 · 2 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@AussieFlem
Copy link

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

@AussieFlem
Copy link
Author

AussieFlem commented Nov 9, 2021

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
}

@jennifer-shehane
Copy link
Member

Duplicate of #3090

@jennifer-shehane jennifer-shehane marked this as a duplicate of #3090 Nov 10, 2021
@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants