-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed as not planned
Closed as not planned
Copy link
Labels
CTIssue related to component testingIssue related to component testingstage: needs informationNot enough info to reproduce the issueNot enough info to reproduce the issuestaleno activity on this issue for a long periodno activity on this issue for a long periodtype: bug
Description
Current behavior
In the UI it displays the warning "cannot connect base url"
But here it is possible to ignore and execute the tests.
Desired behavior
Before I updated it to version 13 it was working and it was not required to define the baseUrl for component tests. And the command npx nx component-test core-tables
works without problems
Test code to reproduce
import { defineConfig } from 'cypress';
import { nxComponentTestingPreset } from '@nrwl/angular/plugins/component-testing';
export default defineConfig({
component: {
...nxComponentTestingPreset(__filename),
video: false,
reporter: '../../../node_modules/cypress-multi-reporters',
reporterOptions: {
configFile: 'reporter.json'
},
screenshotsFolder: '../../../dist/cypress/libs/reports/mochawesome/screenshots/about'
}
});
Cypress Version
13.2.0
Node version
v18.15.0
Operating System
Windows 10
Debug Logs
> nx run core-tables:component-test
DevTools listening on ws://127.0.0.1:59615/devtools/browser/3a1d1242-0013-46a8-9bd2-6d4ea7994825
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
- Generating browser application bundles (phase: setup)...
Cypress could not verify that this server is running:
> http://localhost:8080
We are verifying this server because it has been configured as your baseUrl.
Cypress automatically waits until your server is accessible before running tests.
We will try connecting to it 3 more times...
We will try connecting to it 2 more times...
We will try connecting to it 1 more time...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Cypress failed to verify that your server is running.
Please start this server and then run Cypress again.
Other
nx version: 15.7.2
MetRonnie, BenjaminBrandmeier, rkrisztian, Zwimber, dylannnn and 5 more
Metadata
Metadata
Assignees
Labels
CTIssue related to component testingIssue related to component testingstage: needs informationNot enough info to reproduce the issueNot enough info to reproduce the issuestaleno activity on this issue for a long periodno activity on this issue for a long periodtype: bug