-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 UI no longer displays spec files to run #23486
Comments
Same problem as #23460 |
Hi @NUlmerTS 👋We both previously worked at @doseme, small world! Is your In your second screenshot, it does have the I made a new project and updated it to be |
sorry that was a copy and past mistake. the spec pattern is in fact: specPattern: 'cypress/e2e/teachStarterWeb/**/*.{js,jsx,ts,tsx,spec}', |
Possiblly linked to mbolotov/intellij-cypress#103 |
Can you share your complete @magarwal19-wellsky and @NUlmerTS can you share your If possible, please share your file structure under Some good bug hunting in mbolotov/intellij-cypress#103. |
Hi @lmiller1990 config.js const { defineConfig } = require('cypress') let data = {}; module.exports = defineConfig({
}, |
From the OPs first post
"specPattern is defined directly inside config and not in e2e-object Also the cypress-grep Plugin uses "config.specPattern" and not the testingType-specific specPattern. I hope I don't bring more confusion to this issue.. but I'm sure the Cypress devs will figure it out :D |
This is happening to me, too. Works in Cypress 10.4, but not 10.5 nor 10.6 Maybe it is related to a non-default installation directory structure? My specs live in /tests/integration/ So, for example, I have: /tests/integration/pages/about/contact.spec.js /tests/integration/pages/support/forgot-password.spec.js /tests/integration/routes/middleware-guards.spec.js My cypress.config.js has |
There is an empty state for when no files match the My gut feeling is the For reference I upgraded a simple project to 10.6.0 yesterday and did not see this problem, so it is likely to be a combination of things. If anybody can create a standalone example using the cypress-test-tiny template it would be helpful to narrow down what the interaction is that leads to this: https://github.com/cypress-io/cypress-test-tiny |
Re: @mirobo's comment, I think it only appeared that I've tried with @NUlmerTS's config (without the grep plugin) and been successful loading the specs list. Wondered if it was a Windows issue but see one of the reports is from Mac. |
After playing around a bit with the config files posted here, it looks like this error is due to a missing null check for If anybody still has the problem after modify the config, please post here with details. |
Removing the I imagine a fix will be forthcoming so we don't have to do that. Which is fine with me; I had high hopes for using Cypress for component testing, but bailed on it as the setup - providing mocks/stubs for Vuetify and Vuex and Mirage - was just too daunting a task. But that's a whole 'nother issue. Thanks for all of the GREAT WORK that you folks do! BTW, if people reading this haven't checked out Mirage, you should. It's a fake server that runs in the client, and lets front-end developers mock out backend APIs. It can be used in both development and testing, and it is fantastic! And it works with Cypress Integration tests to boot! (For the record: I am not, and never have been, affiliated with Mirage in any way. I started out using Ember, and Mirage was built for that, which is how I got introduced to it. But they've since expanded it to work with React and Vue, the latter being what I now use.) Thanks again! |
I had the same issue |
I can confirm that removing the component in cypress.config enabled it to run. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
From version 10.5.0 onwards, the specs section no longer displays any specs in the file.
However, when reviewing the project settings spec patterns, nine files can be found
It should be noted that when the tests are run in headless mode, they continue to work as expected.
The current workaround is to downgrade to 10.4.0.
Desired behavior
After opening the cypress to use the UI format. Then selecting a browser types the spec files should display.
Test code to reproduce
const { defineConfig } = require('cypress')
module.exports = defineConfig({
projectId: 'f2y8fb',
chromeWebSecurity: false,
responseTimeout: 60000,
blockHosts: '.parsely.com',
pageLoadTimeout: 90000,
e2e: {
setupNodeEvents(on, config) {
require("cypress-grep/src/plugin")(config);
},
baseUrl: 'https://www.teachstarter.com/',
//baseUrl: 'https://staging-prexit.teachstarter.com/',
specPattern: 'cypress/e2e/teachStarterWeb/**/.{js,jsx,ts,tsx,spec}',
},
Cypress Version
10.5.0
Node version
v14.17.5
Operating System
Windows 11:22000.856
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: