Category "cypress"

Run assertions directly in browser context in Playwright

I would like to test some apis which are tied directly into browser and not necessary have UI representation. Simpliest test beeing something like: import { tes

Can you run cypress specs all as one test run so that the test records to testrail as one test run instead of a test run for each spec file?

I have been using this npm package: https://www.npmjs.com/package/cypress-testrail-reporter and it does not seem to have a reporter option to allow me to do thi

Azure DevOps pipelines for cypress tests not running in the test environments(Dev, QA, Stage and prod) that I selected before clicking on run

I have different environments added in my cypress.env.json file like below { "environment":"staging", "prod":"http://production.com", "staging":"http:/

Can't generate cucumber reports after stop cypress runner

I am using Cypress + Cucumber. Trying to fail test and skip steps if one of the failed. For this, I'm using the following code: afterEach(function () { if (

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