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
0 answers

Nestjs with Fastify e2e test with jest mocking is not working

I have Nodejs API that use Fastify. The e2e test is written with jest. Please find my e2e test. It works and test passes. Here I find the response is same as the request parameter instead of mocking object. The actual API respond the request…
user3497702
  • 695
  • 3
  • 12
  • 25
1
vote
0 answers

cy.click('div.wrapper') or cy.check('input[type=checkbox]', { force: true })?

Let's say there is some hidden checkbox wrapped with a styled div element:
In Cypress I want to test when user clicks on this element to choose this…
loonskai
  • 90
  • 1
  • 2
  • 15
1
vote
2 answers

Google Optimization for e2e test with protractor

Login optimization should be implemented in order to speed up the execution time of all e2e tests. Currently, after each test we have, the Chrome browser closes, and the next session login should be done again in order to proceed with another test.…
1
vote
1 answer

Basic concept of jasmine, protractor and mocha

I am new to e2e testing. I'm using protractor for angular 4 testing. I am much confused about jasmine, mocha and protractor. My understanding with jasmine and protractor is that jasmine is a testing framework. It can not be used stand alone without…
Analyst
  • 751
  • 6
  • 15
1
vote
1 answer

my test is failing when I run headless because it is invisible

I am testing a dotnet application trying to select a drop-down option. the selectors are already within the dom from the start, but they do not become visible until i click on the dropdown. when I try to click on the option it fails saying it is…
Sagick
  • 317
  • 2
  • 6
  • 20
1
vote
1 answer

How to run the generated remoteconnection url directly in other machines browser Testcafe

This is the code const createTestCafe = require('testcafe'); let testcafe = null; let connection = null; const angulartests = [ 'tests/Selector.test.ts' ] const concurrency = 2; var processFailed = false; createTestCafe('localhost', 1337,…
1
vote
1 answer

Testcafe: Native dialog window handeling

I'm trying to upload a file to the site I'm testing (Using Chrome) with Testcafe. Below is my code so far, await t .setFilesToUpload(Selector('input.btn.btn-link.d-none'), file_path) await t .setNativeDialogHandler(() =>…
usustarr
  • 418
  • 1
  • 5
  • 21
1
vote
1 answer

TestCafe and grabbing an element/selector when no ID or CSS is present

Hello I have a simple page of our application, the start page that has a disclaimer on it and one button. Because of the technology we are using the IDs are stripped out and obfuscated. So the button's name is 'ok' as it appears in the…
1
vote
1 answer

Best Practice testing angular on C/I like travis

Hey what is the way to test an Angular app on an C/I like travis? I createt a new Angular project with version 8.3.20 and the first thing what I tried, is how to use C/I. So I read the travis doc on how to use chrome ->…
1
vote
0 answers

How to stop updating UI snapshots with Cypress e2e snapshot testing and Vue

I'm running cypress e2e testing and ui snapshotting with cypress-image-snapshot on a vue app. Whenever matchImageSnapshot() succeeds, it replaces the existing .png image with a newer one. I run the following: vue-cli-service test:e2e According to…
1192805
  • 988
  • 2
  • 10
  • 26
1
vote
1 answer

How run test cafe studo tests from command line

Good day. I want to run the test cafe studio tests from the command line because our CI(TFS) is not supported. All the examples that I found are intended for the Old version of the test cafe or for the free version. Thanks.
1
vote
1 answer

Protractror e2e tests with Teamcity - Wrong Build Steps

I'm trying to set up a protractor e2e project with TeamCity 2019.1. I've created Project, connected Agent, connected Subversion with repository. I have Problem with set correct build steps. How I'm running my tests locally: webdriver-manager…
1
vote
1 answer

Workaround to run Sonobuoy e2e tests on K8S cluster having node taints

I'm trying to run E2E Kubernetes tests using Sonobuoy, but if one of the nodes has custom taints (NoSchedule) I'm getting Nov 26 08:31:14.626: INFO: >>> kubeConfig: /tmp/kubeconfig-744133672 Nov 26 08:31:14.635: INFO: Waiting up to 30m0s for all…
Katona
  • 11
  • 1
1
vote
1 answer

test.before hook overrides feature.beforeEach hook. Bad logic?

the documentation (https://devexpress.github.io/testcafe/documentation/test-api/test-code-structure.html#test-hooks) states that: "If test.before or test.after is specified, it overrides the corresponding fixture.beforeEach and fixture.afterEach…
faisalk
  • 129
  • 1
  • 14
1
vote
2 answers

How to write an unit and/or e2e test for function that calls services

How would I approach writing a unit test for this function? When the form is submitted, it sends a POST request to get a login token. With the token response it then sends another request to get the specific user details. Here is the function: //…