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.
Questions tagged [e2e-testing]
3036 questions
17
votes
1 answer
How to select text using cypress [cypress]
I'm looking to test a text editor like https://github.com/brijeshb42/medium-draft using Cypress. But I can't find a way to select text using it. Does anyone have a clue on how to do that?
I'd have to select a specific text range in order for the…

yamadapc
- 273
- 1
- 3
- 8
17
votes
3 answers
How to detect API modifications when mocking e2e tests?
I'd like to setup a solid e2e testing foundation on our team's project but I can't find a simple solution to that question :
When you are mocking all of your calls, what is the best way to detect if the actual model of the objects returned by your…

deonclem
- 860
- 10
- 25
17
votes
2 answers
Protractor e2e Tests Login Redirection
Currently have a partial end-to-end test that enters a username/password and clicks 'sign in'.
It does that successfully, but concludes at a "thanks you're logged in" page, instead of being redirected to the 'account portal' or 'dashboard', the way…

bruh
- 2,205
- 7
- 30
- 42
17
votes
4 answers
Protractor E2E angular "angular could not be found on the window"
I have a strange error after running my tests in angular project Error: Error while waiting for Protractor to sync with the page: "angular could not be found on the window". My Protractor configuration looks like this:…

Oleksandr Verhun
- 814
- 1
- 8
- 23
16
votes
2 answers
Cypress tests are green locally, but failing in CI - tips on debugging?
As much as I adore Cypress it's starting to turn out quite badly. I don't think I would be doing something fundamentally wrong. I've read best practices a couple of times and I don't see what I could improve really.
It's starting to be rather…

FredyC
- 3,999
- 4
- 30
- 38
15
votes
2 answers
Catch URL after click with Cypress (window.location changes)
I would like to know how to capture and read the URL after a click event on an link.
On the onClick event our javascript does some string manipulation of the actual href of the clicked link and then a window.location.href = myNewReplacebleURL…

Radu Chiriac
- 1,374
- 3
- 18
- 34
15
votes
2 answers
Transparent proxy for testing server responses offline in Android
I have a data-driven Android app scaffold. Adding tests, aiming for 100% coverage. Using OkHttp.
How do I transparently intercept calls to my server with mock responses?
Want this for—end-to-end as well as—unit tests. E.g.: setting build-type to…

A T
- 13,008
- 21
- 97
- 158
14
votes
2 answers
Nest.js Testing Error: Using the "extends Logger" instruction is not allowed in Nest v8. Please, use "extends ConsoleLogger" instead
Here's the problem I have:
I am using my custom Logger in Nest.js:
export class ReportLogger extends ConsoleLogger {
verbose(message: string) {
console.log('【Verbose】Reporting', message);
super.verbose.apply(this, arguments);
}
…

Sea Monster
- 141
- 1
- 6
14
votes
1 answer
One Year Later, Still Struggling with Unit vs Integration vs E2E testing
I recently watched a number of talks from the AssertJS conference (which I highly recommend), among them @kentcdodds "Write Tests, Not Too Many, Mostly Integration." I've been working on an Angular project for over a year, have written some unit…

redOctober13
- 3,662
- 6
- 34
- 61
13
votes
7 answers
Creating a random string in Cypress and passing this to a cy command
I am new to Cypress and have a small problem which I would like some help on.
I have an input field in my application which allows me to enter a name. This name has to be unique and must not be the same as an existing name already in the…

Jas
- 805
- 3
- 12
- 21
13
votes
2 answers
Write current URL to console in TestCafe
I have a variable "currentPage" which I want to set to the current URL on the running page.
But to see that the URL is correct I want to print it to the console. What ever I try I keep getting "not defined", "object", ...
If I on the other hand use…

ASE
- 355
- 2
- 12
13
votes
1 answer
How to run Jest-Puppeteer test in multiple files
I am using jest-puppeteer to run my webtests. If I am running my tests all defined in one file, everything works perfectly.
describe('user', () => {
jest.setTimeout(12000);
beforeEach(async () => {
await page.setViewport({width:…

Stefan
- 1,590
- 3
- 18
- 33
13
votes
3 answers
Nightwatch testing: Set browser to fixed size
Is there any way to ensure that the browser does not change from the initial window size. There are several things that are clicked during testing that are causing the window to maximize but i would like it to stay the same size throughout.

compsci45000
- 379
- 1
- 5
- 17
12
votes
2 answers
Using test database when e2e-testing NestJS
In this project, it uses NestJS along with TypeORM. For real API requests, CRUD operation is being operated on MySQL(which is using AWS RDS).
Now I am trying to use SQLite(In-Memory) to test API results.
I successfully implemented this in Unit Test,…

Roy Ra
- 504
- 1
- 6
- 23
12
votes
2 answers
How can I check an element for multiple CSS classes in Cypress?
How to check if an element has multiple classes?
Couldn't find anything on the official docs, only:
cy.get('form').find('input').should('have.class', 'disabled')
or
expect($el).to.have.class('foo')
When inserting multiple class names, I get an…

nikitahl
- 406
- 2
- 7
- 16