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

Unable to verify Request originated From Shopify - Cypress

I'm trying to automate some testcases on Shopify store but i'm unable to do so. Here are screenshots [
1
vote
1 answer

Unable to load my Azure hosted web app through Cypress

I have an Azure hosted App when I try to cy.visit('url') Cypress stuck and below is visible. After sometime "HTTP Error 414. The request URL is too long." is visible. Please help if anyone have any idea on how to resolve this.
1
vote
1 answer

How to set the map object into Cypress result json file

I'm using cypress runner to execute the spec file and return the result as like below. Runner.js: const cypress = require('cypress'); const param = require("./cypress/support/Param"); async function testRunner(fixture) { return cypress.run({ …
1
vote
1 answer

How do I save Cypress's testrunner's "console log" (left hand side) to a file

I would like to save the data from the left-hand-side of the TestRunner to a text file (json, plain text, or any kind of text). I feel like this should be very easy, and that I'm simply just missing something. However, I cannot find anything to…
CrashNeb
  • 394
  • 3
  • 12
1
vote
4 answers

The following error originated from your test code, not from Cypress - process is not defined

I am getting this error when try to run the test in Cypress. Can someone help me how to resolve this, please? This is my index.js // Import commands.js using ES2015 syntax: import './commands' // Alternatively you can use CommonJS syntax: //…
ChinS
  • 199
  • 2
  • 11
1
vote
1 answer

Cypress, look for multiple parameters like ID and Class

I was wondering if it's possible to search by multiple parameters in cypress, for example ID and Class it('find button',function(){ cy.get('#button_id, .button-class').click() }) is this something that is achievable???
1
vote
1 answer

How to append to window on Cypress

I'm testing a vue app which has a mixin that relies on a window method: export default { data () { return { aurora: window.Aurora || {} } }, methods: { quickView () { const hasQuickViewElement =…
asotos
  • 327
  • 3
  • 14
1
vote
1 answer

Capture screenshot of an element without resizing the viewport of cypress

I have set up viewport as below. Cy.viewport(1440,700) Then taking the screenshot Cy.get('xxxx').toMatchImageSnapshot() But when taking screenshot, the browser is resizing to fit to the browser window size. How to control the browser…
1
vote
1 answer

Skip a global function on Cypress

I have some global variables on my cypress test scenario. describe('AutoLogin Test Case',function(){ beforeEach(function(){ Cypress.Cookies.preserveOnce('_session_id') }) afterEach(function(){ …
1
vote
1 answer

New Cypress test cases don't show up as available

For my custom test cases they no longer display as available in the UI: at the moment only the example cases are available. My test cases are inside the integrations folder. I have also tried to add a designated list of cases to cypress.json and…
Bruno Rodriguez
  • 65
  • 1
  • 1
  • 8
1
vote
0 answers

I am getting an Error when I tried to Upload a file (image of jpg/png) with Cypress and Java script

//Click on File Upload and upload the DL cy.get('p').contains('Upload your Document').parent('span').parent('button').click(); cy.fixture('./testData/JamesBondDL.png').then(fileContent => { cy.get('p').contains('Front…
1
vote
2 answers

Why does fixture only load in the first run component test

I am using Cypress component testing. I currently have the below code to setup one of my component test suites, loading a fixture once (before) then mounting it each time (beforeEach) before(() => { …
Rory
  • 2,175
  • 1
  • 27
  • 37
1
vote
1 answer

URLS Redirects with Cypress automation

I passed 100+ URLs path(legacy) in the scenario outlines and i want to hit each one of them and to redirect to a new path(new). I passed a code like below; function createNewUrlFromLegacy(legacyPageUrl) { const urlPath =…
0
votes
2 answers

How to fix this?
...

below is the response error from running cypress. Timed out retrying after 4000ms: cy.type() failed because this element:
Zack
  • 1
0
votes
1 answer

The following error originated from your test code, not from Cypress : > Cannot find module '..\test\cypress\support\component.js'

Cannot find module '******\test\cypress\support\component.js' I am trying to connect to oracle database and send a simple select query as cypress task. Once I run the test got this error: **An uncaught error was detected outside of a testfailed No…
Amin
  • 1
  • 1