Questions tagged [e2e-testing]

End-to-end testing is a methodology used to test whether the flow of an application is performing as designed from start to finish. The purpose of carrying out end-to-end tests is to identify system dependencies and to ensure that the right information is passed between various system components and systems.

3036 questions
1
vote
1 answer

Gitlab CI: How to configure cypress e2e tests with multiple server instances?

My goal is to run a bunch of e2e tests every night to check if the code changes made the day before break core features of our app. Our platform is an Angular app which calls 3 separate Node.js backends (auth-backend, old- and new-backend). Also we…
L. Heider
  • 1,579
  • 1
  • 14
  • 31
1
vote
1 answer

Assert any one element in multiple

In Cypress, is it possible to assert that any one of a number of elements matches a specific rule? For example, something like this: cy.get('nav').children().any.should('have.value', 'My value');
half of a glazier
  • 1,864
  • 2
  • 15
  • 45
1
vote
1 answer

TestCafe - Get value of attribute in a dropdown list

There is a search bar with a button to filter. Clicking on the same submenu (dropdown) is displayed. The HTML looks like :
  • ....

    Value1

Sky
  • 215
  • 1
  • 3
  • 11
1
vote
1 answer

The provided "teamcity" reporter does not exist. Check that you have specified the report format correctly

suddenly the test I have in testcafe stop working. I have try to reinstall again the teamcity reporter with: npm install -g testcafe testcafe-reporter-teamcity and npm install testcafe testcafe-reporter-teamcity I can see that I have the folder…
Patrick Vibild
  • 405
  • 1
  • 3
  • 16
1
vote
1 answer

I have an issue to pass a timeout param in get() to should() in my cypress test

cy.get('.buy-order [data-cy=balance]', {timeout: 5000}).then(el => parseFloat(el.text())).should('be.greaterThan', balance); I have an issue to pass the timeout param in the get() to the should() in the above code. In the then(), I need to extract…
Daniel Li
  • 170
  • 1
  • 12
1
vote
1 answer

how to stub window.open in testcafe

I would like to mock the window.open function in testcafe. so that if my app calls window.open rather than hitting actual one we can use mock something like this would be better onBeforeLoad: (window) => { cy.stub(window, 'open'); }
questionar
  • 274
  • 2
  • 18
1
vote
1 answer

How do I index the last element in a Redux store through a Cypress test?

What I'm trying to do is check for a value that is located at the nth index of some array in a Redux store. it('Enter text into comments, send comment, verify comment is displayed in comment list', ()=>{ cy.server() …
Heyrio
  • 129
  • 2
  • 11
1
vote
1 answer

Does testcafe support soft assertions

I have a scenario that is an end to end testing where I have multiple assertion points. Observed that when an assertion fails test stops. But I need to just report a failed step in test results and proceed further with the test execution. Does Test…
1
vote
1 answer

Testcafe - Fresh browser session is launched for each test in a fixture. How can we avoid this

I have a scenario which is an end to end testing. test1 - Add a setup test2 - Generate template for the data test3 - Link Github to the setup test4 - perform some actions in Github and validate data I created a fixture with test1, test2, test3, and…
1
vote
1 answer

Is there a way to achieve key combination (Ctrl + +) using TestCafe?

I have been struggling trying to get the key combination mentioned in the title (Ctrl + +). What I have tried so far: 'ctrl+\+' 'ctrl+\\+' Is this even supported in TestCafe? The project I am working on uses Typescript as the primary language.
1
vote
0 answers

Apart from the need to inject 'test' and 'fixture' as globals, does TestCafe really need to compile test code itself?

Just curious from a technical perspective: what is TestCafe doing in the compilation step apart from injecting the test and fixture functionality into the module? How much re-architecting would need to be done to allow the user to pass in tests as…
1
vote
1 answer

How do trigger the key combination 'CTRL+SHIFT+ENTER' using Testcafe .keypress()?

I am trying to run an e2e test with TestCafe and the scenario is that when user press the keys 'CTRL+SHIFT+ENTER' it should trigger an event. it works when i use the keyboard but not within the E2E. Thank you for your help. the command i use is…
1
vote
2 answers

TestCafe RequestLogger - How to implement for every request in the test framework

We are trying to track down a network issue in our company which causes a Browser Disconnect General Error. I want to use RequestLogger timestamp to help us highlight when this intermittent issue occurs and also any additional request/response…
1
vote
0 answers

CypressError: Timed out retrying: cy.wait() timed out waiting 5000ms for the 1st request to the route

I am new to cypress and I am checking my page, and wanted to request method Get, for clicking button after that. here's my code : cy.server() cy.route('GET', 'https://swapi.co/api/people/').as('getPeople') …
1
vote
1 answer

Nest JS Microservice TCP E2E Test

does someone know how to write E2E test for nest microservices? Giving this code? main.ts import { NestFactory } from '@nestjs/core'; import { Transport } from '@nestjs/microservices'; import { AppModule } from './app.module'; async function…
Georgian Stan
  • 1,865
  • 3
  • 13
  • 27