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
8
votes
5 answers
Add cookies in playwright test
No matter what I do I get an error (either X.cookies is not a function or X.addCookies is not a function). I tried with context, page.context. browserContext etc. and it always ends up in the same way (ok, page.context as well as browserContext are…

ugabuga77
- 681
- 2
- 11
- 19
8
votes
1 answer
Running e2e tests with jest @ nestjs
I'm trying to run e2e tests with jest & nestjs and I've run into the weirdest error that doesn't return anything in my google searches (ExpressAdapter is not a constructor):
$ env-cmd -f .env.test jest --config ./test/jest-e2e.json
FAIL …

xtrinch
- 2,232
- 1
- 24
- 46
8
votes
3 answers
Visit new url Cypress
I'm new to Cypress. My app as a "routing system" manually changes window.location.hash.
At some point, I click on a button that changes the hash and consequently should change the page during the test. I can see a "new url" entry appearing during…

alfredopacino
- 2,979
- 9
- 42
- 68
8
votes
2 answers
cy.getBy*** is not a function
I'm trying to run Cypress during my Azure release pipeline. I install all the packages I install locally but when I run the Cypress tests I get several errors:
TypeError: cy.visit(...).getByText is not a function
TypeError: cy.getByLabelText is not…

Peter Boomsma
- 8,851
- 16
- 93
- 185
8
votes
2 answers
TestCafe how to reload actual page
Is there a way to reload the actual tested page I'm visiting in TestCafe and not the site that TestCafe is running under. I've tried using:
await t.eval(() => location.reload(true));
but that just reloads the server page that TestCafe uses. So…

ruazn2
- 745
- 2
- 8
- 15
8
votes
1 answer
Cypress.io - function visit takes a long time, it is waiting until all resources are loaded
I am using a Cypress.io for end to end testing in our team, but we have a problem with function cy.visit() very often.
The website has many resources from our server (css files, js files,....) and some external resources (js files).
If you open our…

Bohumil Havlíček
- 113
- 2
- 5
8
votes
1 answer
How much is too much assertions in automation testing?
I am given the task to build a test suit using testcafe and, as I write tests I stumble upon one particular question “how much assertions is too much?”.
Basically, after the tests are done, a report is generated. Looking at the report it is not…

Roosevelt H
- 340
- 3
- 11
8
votes
3 answers
Testcafe command not found when installed through "npm install"
When I installed testcafe with command sudo npm install -g testcafe I was able to use the command "testcafe" in the terminal, running tests like testcafe browser test, but now I formatted my OS and installed it with just npm install with the…

Leonardo Veiga
- 93
- 2
- 4
8
votes
2 answers
Command to run two or multiple tests
How to run two or more tests from a single TestCafe CLI command.
-t "Test name" accepts only one test name.
https://devexpress.github.io/testcafe/documentation/using-testcafe/command-line-interface.html#-t-name---test-name
Requirement:
Want to run…

smvnkt
- 93
- 1
- 6
8
votes
4 answers
Protractor Failed: element not interactable
I am running an E2E test for an Angular 7.x app. The test runs straight forward on my local machine. But when I push it on the repo (GitLab), then pipeline fails and throws following error:
USER PROFILE - Check and change PROFILE
- Failed:…

k.vincent
- 3,743
- 8
- 37
- 74
8
votes
2 answers
How to run Protractor e2e tests with different environment variables (Angular 6)
In e2e test I want to have environment variable similar to the one as in Angular app. Looks like e2e test project builder "builder": "@angular-devkit/build-angular:protractor" does not support file replacements (unlike builder for web…

Igor
- 3,576
- 3
- 23
- 18
8
votes
3 answers
How to configure middleware in e2e test in nestjs
In real app, we write:
export class AppModule implements NestModule {
constructor() {}
configure(consumer: MiddlewareConsumer) {
consumer.apply(JwtExtractionMiddleware).forRoutes({
path: 'graphql',
method: RequestMethod.ALL,
…

JeffChan
- 188
- 2
- 8
8
votes
1 answer
Is there a way to access clipboard contents?
I am testing a page that has an embed modal with a textbox with an embed code and a "Copy" button that should copy the contents of the textbox onto the clipboard so a user can paste it elsewhere. Is there a way to test clicking the "Copy" button and…

Samantha Blasbalg
- 749
- 6
- 13
8
votes
1 answer
How to get the json response of a RequestLogger
RequestLogger
A have this test outside the main test controller, using page model and this recipe.
/**
Used to get the periodic analytic id.
Whenever we are viewing an asset, the server must respond with an id.
This id is later used by the…

Aris Gatoudis
- 103
- 1
- 8
8
votes
2 answers
How to emulate window focus lost in Cypress.io
I am writing E2E tests for a website using Cypress.io. One of the features I would like to test is that the site correctly detects focus lost and displays an (angular material) dialog box. The issue I am having is that I can not find a reliable way…

davidk
- 784
- 1
- 6
- 22