Cypress UI no longer displays spec files to run
See original GitHub issueCurrent 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
No logs displayed
Other
No response
Issue Analytics
- State:
- Created a year ago
- Comments:17 (7 by maintainers)
Top GitHub Comments
After playing around a bit with the config files posted here, it looks like this error is due to a missing null check for
component.devServer
in the config… if you have partially set up component testing you might be in this state, and the workaround for now will be to removecomponent
from your config - or set up yourdevServer
with the framework and bundler for component testing.If anybody still has the problem after modify the config, please post here with details.
I can confirm that removing the component in cypress.config enabled it to run.