Questions tagged [e2e]

146 questions
1
vote
2 answers

Waiting for an intercepted request is not working as expected

I need to check the status of the email verification token changed after verifying the email. First I create a user, then I get the email verification URL sent to the user and finally access this link. When accessing the app link, it sends the auth…
Matheus Toniolli
  • 438
  • 1
  • 7
  • 16
1
vote
0 answers

cypress/included + "npm run xyz"

While using cypress/included, is it possible to run a specific "npm run" command? reason is i want to start an angular-app and THEN run the tests, but with that docker image. (i tried to use my own image but it is missing a dep. "system is missing…
Ben jamin
  • 946
  • 1
  • 6
  • 18
1
vote
1 answer

Azure build fails when any of one test fails in Cypress E2E

I have one test case passing and one failing upon which I run my Cypress E2E pipeline task in Azure. Above error occurs and fails Azure build. But if I have all the test cases passed then build is successful. Your ideas and experience would help a…
coloraddict
  • 113
  • 1
  • 12
1
vote
0 answers

What are the best practices to deal with external resources in E2E tests?

in my team we use E2E tests, and we have the following dilemma about dealing external resources: We want our E2E tests to test whole flows - including dealing with the DB, upload images to our S3 servers and etc. It occured that one of the external…
user2993539
  • 375
  • 1
  • 3
  • 14
1
vote
1 answer

Cypress intercept does not match route with status 204

I am implementing cypress tests in our Angular application and have a problem waiting for a request to finish. I am guessing it has to do with the status of the Request being 204 instead of 200. This is the function/command I am calling in my…
PhilipAllStar
  • 120
  • 1
  • 9
1
vote
2 answers

Lambda tests not working on azure devops pipeline

I have one problem when I'm running lambda tests from Azure DevOps pipeline. I've written tests in testcafe and they work locally with 100% percentage of succeeding test cases. I've tried with different browsers locally by specifying command for…
newnick988888
  • 107
  • 13
1
vote
0 answers

Switching sessions in cypress

There's this exact title in the cypress docs: https://docs.cypress.io/api/commands/session#Switching-sessions-inside-tests But I'm not sure how to implement it. I currently have a test that signs up a user A, does something, and then another user B…
user3303019
  • 142
  • 1
  • 11
1
vote
4 answers

cypress use same endpoint with different response (testing http race condition)

I try to intercept two similar requests but two different responses in delay between each responses. send a first request to the /endpoint with delay in response like 3000ms second request to the same /endpoint with delay in response 1000ms both…
nag
  • 15
  • 5
1
vote
3 answers

value of hidden element is not changed

I have the following checkbox element
FarFarAway
  • 1,017
  • 3
  • 14
  • 35
1
vote
1 answer

Cypress in docker can't find cypress.json file

I'm struggling with testing my app with my Cypress with docker, I use the dedicated docker image with this command : docker run -it -v $PWD:/e2e -w /e2e cypress/included:8.7.0 I have ALWAYS this error when I launch it : `Could not find a Cypress…
Antoine Deloy
  • 75
  • 1
  • 3
  • 6
1
vote
0 answers

Using detox can you test apps outside of our application made in React Native?

I'm using React Native to develop my app. I use detox as my E2E testing framework. I want to test things outside of my app, for example: Browser search and deep-linking to my app. Email sending in Gmail/outlook app when it opens from my app. Photo…
1
vote
1 answer

How can I set up localStorage keys with storageState

I'm trying to set up localStorage when a user registers, but it only generates the file with no key, values. If I run npx playwright codegen --save-storage=formsData.json works fine and generates the key,values but the generated code is very…
Francis Lagares
  • 81
  • 5
  • 11
1
vote
3 answers

Cypress doesn't work with an external login

I'm working on e2e test with cypress on my application. In my case the login are manage by a external service. When I want to enter in my application's home page (https://myApplication/home), the system redirects me in different superdomains to…
1
vote
0 answers

Tescafe -q not working properly (quarantine mode)

so I have some flakiness in my e2e tests and want to use testcafe's quarantine mode to minimize pipeline failures. For some reason the tests wont rerun after failing. testcafe 'chrome:headless --no-sandbox --autoplay-policy=no-user-gesture-required'…
tymbuktu
  • 21
  • 2
1
vote
1 answer

Putting product in shopping cart makes it disappear in cypress

I'm an intern at an tech company and I've got the task to try to write some tests. I'm not a dev,nor an engineer, I'm actually studying economics so please forgive any newbie mistakes. My goal is to test what is shown in the shopping cart after I…
M T
  • 13
  • 3