Category "cypress"

Pipeline test fails because of time difference of local and pipeline environments

I have problem surrounding the difference between pipeline execution and my local environment. I'm intercepting a request using the following command: cy.in

In Cypress, Date and Time input fields are cleared unexpectedly after other input fields are filled

I have 4 input fields that must be filled to activate a form submit button. Date Time select textarea I created a cypress test to fill each of them by order and

Failed to connect to the bus: Address does not contain a colon

I'm getting this error when my circleci job is building my cypress test: [432:0312/154643.301773:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to con

How to override the subject option command in Cypress

Cypress says options is only supported for use in Cypress.Commands.add() and not supported for use in Cypress.Commands.overwrite() So we can't change the subj

cypress elm[aelFn] is not a function error in afterAll test hook

I'm using cypress 9.3.1 with @cypress/code-coverage 3.9.12 and cypress-cucumber-preprocessor 4.3.1 in an angular 13.0.1 application. My tests are running fine a

CypressError cy.visit() failed trying to load https://example.cypress.io/todo

i created cypress project for that i run npm init -y to generate package.json file then npm i cypress to create a cypress project. then opened it via npx cypres

Cypress: Add option to allow LocalStorage

The following facts: page 'X' Open -> cy.visit('/x'); check checkbox 'A'-> cy.checkCheckbox('A'); close browser or reopen page ?????? check if checkbox 'A

How to tell the compiler about window.Cypress in .tsx files?

I'm building an app with Cypress and TypeScript. I have the following code, which slightly alters the behaviour of the Magic SDK based on whether it runs inside

Error Opening Cypress - macOS (CI/CD) Error choosing pixel format

I'm trying to add cypress to our CICD workflow. It's running in a self-hosted macOS builder runner (12.2.1) Any idea how to fix the error below? Opening Cypress

Conditional Tests in Cypress using data-cy attributes as selectors

I see some posts about this exact topic, but none of them using data classes like I am as selectors, so it makes this conditional test a bit harder to write. Th

Common used functions abstraction (correct structure)

I do know that there is commands.js where functions can be added that we often use but isnt it gets way to messy if we just have bunch of functions in that js f

Cypress - Status: 401 - Unauthorized in token authentication to other API call

I would like to ask for your help regarding the authentication token to be used in other API calls. Below are the scripts of the command and test case: //comman

trying to set value to context provider for a cypress test spec

the challenge am having is explained below Am trying to set a draft_id value after the submit-recipients data-testid is clicked. The beforementioned value is pa

How to execute the Kafka Consumer file from Javascript

I have used KafkaJS library and configured an consumer code to fetch messages from a topic of one of my streaming API. I have created a consumer.js file and I'm

Unable to run mockttp with Cypress

I'm trying to run the mockttp with cypress. I used the example that's listed in project github. I changed the port to run on 3000 but I am getting an error sayi

Cypress won't show an array contents into the console

I'm trying to add the titles of an iframe header into an array to then print the array with it's element into the console. The elements are added just fine, the

Saved snapshot is only black square with plugin Cypress Image Snapshot

I tried to revive visual test in Cypress which run with help of plugin Cypress Image Snapshot. In the past this test during first run save image with desired e

Cypress using actions from Pinia Vue3

I was learning some cypress from this video: https://www.youtube.com/watch?v=03kG2rdJYtc I'm interested with he's saying at 29:33: "programatic login" But he's

How to add types to Cypress.env?

I have this cypress.json config file: { "env": { "example": "Hello World!" } } In my tests: Cypress.env("example") Can I add any kind of type defintio

Cypress can't drag a custom angular cdkDragHandle

I'm losing sanity over this one. I have one drag and drop list in my app with a custom drag handle and cypress seems to be unable to drag it. Manually when the