Questions tagged [cypress-component-test-runner]

This tag should be used in questions related to running Cypress tests with Component Test Runner and the configuration or other issues with the Cypress Component Test Runner.

This tag should be used in questions related to running Cypress tests with Component Test Runner and the configuration or other issues with the Cypress Component Test Runner itself.

References:

Related tags:

180 questions
1
vote
1 answer

Cypress Codebuild Project Fails To Start

I have a codebuild cypress project that runs a buildspec file in order to run all of my cypress tests. I have recently updated to cypress v12 and node 16 and now when I run my codebuild project I get the following…
1
vote
1 answer

Getting 403 forbidden in cypress for a simple login hosted on akamai

I am running this script to access a website hosted under akamai : /// describe('Store login', () => { it('login to Store', () => { cy.visit(("https://store.qlsit.qantas.com/"),{ headers: { "Accept"…
Sneha
  • 11
  • 2
1
vote
1 answer

How to specify which .env file is used in Cypress Component Tests

i've been trying to figure out how to specify which .env file to use when running Cypress Component tests for a while now but can't seem to figure it out or find any information about it online. I've noticed when you mount a Component in Cypress and…
1
vote
0 answers

Unable to fix the by default blank page of cypress updated version

After updating the cypress to latest version i'm geting this error However i added the testIsloation to false in cofigration file but I'm still getting this error can anyone please help
1
vote
0 answers

Cypress/Vue component testing: TypeScript error on `props` when passed to `mount`

Setup based on this example produces the following error for each occurrence props being passed to mount: Type '{ batchOpsConfig: __Config; }' is not assignable to type 'VNodeProps & { __v_isVNode?: undefined; [Symbol.iterator]?: undefined; } &…
1
vote
1 answer

An uncaught error was detected outside of a test

When I run all my component cypress tests locally on a Macbook pro on a react-vite project with around ~10 tests, I get the following error: An uncaught error was detected outside of a test: TypeError: The following error originated from your…
Matan Gubkin
  • 3,019
  • 6
  • 25
  • 44
1
vote
0 answers

cypress 12 docker throw error socket_posix.cc(93)] CreatePlatformSocket() failed: Address family not supported by protocol (97)

I upgraded my cypress version from cypress 8 to cypress 12. I am executing all my test cases on jenkins server OS centos 7 using base image cypress/base:16.13.0. When I executed all the test cases on my local window 10 using same docker image…
Rama
  • 815
  • 2
  • 17
  • 37
1
vote
0 answers

How can i get a coverage report from component tests using Cypress installed on top of CRA with TS?

My case is frustratingly specific. Because I couldn't get past my companies login page using e2e tests, I need to rely on component tests using Cypress. I have a working headless Cypress 'component' test working locally and on Jenkins, but I need to…
1
vote
2 answers

How to include scss styles in angular cypress component testing

When mounting a component from my nx monorepo in my cypress component test runner, the custom styles are not applied to the mounted component. These styles are scss files, so i dont really know how to compile/include these styles right before…
1
vote
0 answers

Cypress fixtures - Cannot read properties of undefined (reading 'runTests')

I am trying to connect to mysql in cypress test cases. But getting an error on when trying to import file mysql-db-connect.js in steps definition file. mysql-db-connect.js function queryTestDb(query, pool) { // creates a new mysql connection…
Rama
  • 815
  • 2
  • 17
  • 37
1
vote
0 answers

Cypress mysql connector throws an error Error: Webpack Compilation Error

I am new to cypress. My cypress test suite are runing good before configure a mysql connector to connect to mysql database. It throw below Webpack Compilation Error error when add mysql connector code in plugins >> Index.js. following BDD apporche…
Rama
  • 815
  • 2
  • 17
  • 37
1
vote
0 answers

Unable to mount Cypress component test for Angular components using Cypress 10.7.0

I am trying to do component testing using Cypress component test runner. The web components are built using stencil. We compile the stencil components and create respective "Angular component" and import them into our projects. We are using a mono…
1
vote
1 answer

How to implement the Music Metadata Or Music MetaData Browser npm plugin in Cypress V10?

I tried to implement the Node plugin in Cypress Version 10, But I couldn't done it. https://www.npmjs.com/package/music-metadata-browser#fetchurl-function Installation is done: npm install --save-dev music-metadata-browser npm install --save-dev…
1
vote
0 answers

Cypress component testing error Module parse failed: Unexpected token

Follow up this question I am using NX 14.5.1 and cypress 10.2.0. I tried another way by creating a custom webpack (I catched from "node_modules/@nrwl/react/plugins/webpack.js") and adding "process.env" into it. const webpack =…
1
vote
1 answer

how to return a devserver for custom configuration while setting up cypress component testing with custom devserver

I have a react component library which is bundled using Rollup. I want to add cypress component testing so that I can unit test those components using cypress.Cypress currently supports setting automatic configuration for React using either webpack'…
1 2
3
11 12