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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

"[ExceptionHandler] this.athleteRepository.findByEmail is not a function" after TypeOrm upgrade on NestJs

I am upgrading my project to TypeOrm 0.3.12 I've spent a bunch of time fixing all my integration tests, such as my AthleteRepository below: import { getRepositoryToken, TypeOrmModule } from '@nestjs/...
  • 1,336
0 votes
0 answers
10 views

how to store variables in jenkins for e2e testing

I'm using dotenv for storing my test usernames and pwrds. Example: .env content examples: TEST_CONTENT_PWRD="123456" .ts content use example: const TEST_USR_LOOKUP: {[type:string]: TESTUser ...
  • 2,225
1 vote
3 answers
25 views

Loop through an array of Locators and apply assertion in Typescript Playwright

I have an Array of Locators and I need to run an assertion to verify if it contains certain text. I am aware that this can be done in a loop however it seems like a tedious approach and I would like ...
0 votes
0 answers
25 views

Force Playwright to fail in case of typescript errors

I can't find a way to force Playwright to fail if spec.ts file has typescript issues, like missing members of the interface. It there any way to do it?
  • 355
0 votes
0 answers
7 views

How to adjust Playwright Codegen's locating priority/strategy in an Angular project with third-party component libraries?

This Angular project uses Emulated ViewEncapsulation, adds dynamically generated attributes like _ngcontent-xxx-c001 into most elements, which absolutely can't be used in E2E Test. Fortunately, ...
0 votes
1 answer
22 views

Does TestCafe execute test steps, in 'test', asynchronously and not sequential?

I am working on an automation project and we follow that age old model of a test case being a list of test steps to validate a behavior in the application under test. Each test step exists in a class ...
0 votes
1 answer
19 views

Gherkin Testcafe invalid installation --> version dependencies

i am currently trying a new project for testing and using gherkin-testcafe package for the tests. But i am getting the following error message when i use this command. I never installed cucumber ...
0 votes
0 answers
15 views

Cypress E2E debug mode - endless re-fetch on hover

When I run npx cypress open on my React project, it opens the debug window, where I can see each test and inspect each snapshot. The test in question is pretty simple describe("Scheduled changes ...
0 votes
0 answers
15 views

React native app crashes when e2e testing with a url using detox and Android Studio. The test runs fine on ios

When I try to run an e2e test with detox with the following test case, the app opens but does nothing, only the screen flashes once, and the test fails. This happens with all other similar tests that ...
  • 159
0 votes
0 answers
24 views

It is possible to build an e2e test for Kafka based application using jest without having to wait?

I know the title is a little confusing but I really have been trying to find resources about this and didn't got much. I have a microservice built in NestJS that uses Kafka messages, I have a ...
0 votes
0 answers
21 views

POST multi-part/form-data with file for TestCafe t.request

I am trying to recreate a curl command in TestCafe using t.request(). I cannot figure out how to upload files as part of a multi-part PUT/POST request. This is the basic curl command: curl --request ...
0 votes
1 answer
40 views

Cypress get elements inside each loop

I have a table , the first column cell contains a div and image . I need to click on div. I also need to perform some test on third column. So i gave the selector till td and didn't include div. cy....
0 votes
0 answers
15 views

Detox React Native test passing for debug but not for release

When testing my react native application with the detox test --configuration ios.sim.release command my test runs and watching the simulator I see the the button with my testId doesn't get pressed. ...
0 votes
0 answers
23 views

Cypress Before hook executing multiple times per test?

I'm doing some e2e testing with cypress and ran into an issue with before hooks. I am testing multiple pages with the same test but different variables. As such i have wrapped my tests within a ...
1 vote
2 answers
88 views

How to implement Page Object Models using context browser in Playwright in typescript?

This current implementation is working very well for certain classes export class PlaywrightDevPage { readonly page: Page; constructor(page: Page) { this.page = page; } async goto() { ...
  • 4,013
0 votes
1 answer
44 views

Testcafe - how to allow Docker image to reach localhost:3000

I have running a webapp on my local machine (http:localhost:3000). Im using testcafe docker image to run a container docker run -v ${PWD}/e2e:/tests -it testcafe/testcafe firefox --base-url localhost:...
0 votes
0 answers
48 views

Is it possible to write unit tests with playwright/test, not using unit testing libs like jest/vitest?

I've been trying to use playwright/test - playwright/experimental-ct-svelte libs. If I've read the documentation; I can do unit testing as well without using jest. But I could not understand how I ...
  • 2,975
0 votes
2 answers
37 views

CORS Errors TestCafe Mock After Upgrade

I recently upgraded TestCafe on a project from 1.8.6 to 2.4.0 and now our mocks are failing due to CORS errors, however, I'm not sure how to resolve them. For the "OPTIONS" request I get the ...
0 votes
1 answer
24 views

how can I iterate over an array of element with webdriverio

Can't iterate over the array element returned by wdio. I want to be able to pass eny element from the array as a parameter to future functions and click the element that matches the condition. Below ...
0 votes
0 answers
34 views

Rust program with Thirtyfour and ChromeDriver doesn't open an URI

I have written a small Rust program with Thirtyfour and ChromeDriver in Ubuntu. ChromeDriver runs on port 9515. I just want to visit a URL, but it doesn't work. It opens the chromium browser with &...
0 votes
1 answer
49 views

Cypress cy.visit() throws error in beforeEach() function

I have created a simple test spec, that contains a few smaller tests. Before each test, cypress has to visit the website that the tests are running on. Therefore, I added the beforeEach() funtion to ...
2 votes
1 answer
74 views

Cypress intercept wait, no request ever occured

I'm having a hard time trying to mock a simple api request from a different port than the frontend. The code below is returning: Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for ...
  • 938
0 votes
0 answers
19 views

How to change the path of default allure reports folder location once cypress integrated BrowserStack suite execution is done?

I had a Cypress Suite which would execute in BrowserStack. Once the execution is done it's generating the allure reports information in a specific location ./build_artifacts/<build-id>/<...
0 votes
0 answers
21 views

Need to show popup page in testcafe

My issue is I have a one web page with three button. If I click on new button one popup page should open. But in my case it's successfully hitting the new button but popup page is not visible. So ...
0 votes
0 answers
32 views

After passing testID to Stack.Screen, testID is not recognized by detox

After installing and configuring detox in react native app to run e2e test. It failed to recognize testID that was passed to the options object of Stack.Screen Home component import { React } from '...
-4 votes
0 answers
27 views

Testcafe + Allure

enter image description here ERROR The "reportTestDone" method of the "allure" reporter produced an uncaught error. Error details: Error: charData should not contain characters not ...
1 vote
2 answers
23 views

cypress e2e run test for multible acounts on diffrent providers

im trying trying to set up an e2e test suite for cypress. The project I want to test is kinda like vercel. It has multiple git providers where you can login and host your code from that gitprovider. I ...
1 vote
0 answers
49 views

puppeteer: type inside input field which is in multiple shadowRoot's

I have a web component address-search which has input field and this component is inside another web component move-property and i am using the move-property in my angular app , now I want to type in ...
  • 301
0 votes
1 answer
73 views

Is Cypress-BrowserStack integrated test suite can also be integrated with Allure to generate reports?

I have a test suite designed using Cypress. In recent times I have integrated it with BrowserStack Automate to overcome some proxy issues. However the test suite is executing well, I am not happy with ...
0 votes
0 answers
49 views

Failed to find a DNS-record for the resource at "localhost" using Testcafe in Bitbucket Pipeline

I want to set up a bitbucket pipeline to run our end-to-end testing using testcafe for our angular application. We are using the guide from this link: https://testcafe.io/documentation/402821/guides/...
  • 251
0 votes
1 answer
41 views

Cypress visiting an URL is not loading content of the site

When I set baseUrl and try to visit URL, the content of the URL is not getting loaded. Here is config file. const { defineConfig } = require("cypress"); module.exports = defineConfig({ ...
2 votes
1 answer
35 views

I can't choose a date automatically for my cypress tests on a vue2 datepicker

I have to test with Cypress, a form created with vue2 and choose a specific date (1 fev 2024): I can't choose a date automatically for my cypress tests Regarding the date I have to put .click(); to ...
0 votes
1 answer
19 views

TypeError undefined reading onDeviceChange makes the website crash if opened in testcafe

My goal here is to navigate with testcafe to my website (dev.remo.co) but for some reason Im getting the following. The code is really not relevant. I issued details in the hammerhead repo but I'm ...
0 votes
0 answers
21 views

Testcafe scripts are failing over firefox browser, not able to load iframe with latest version , same thing is working with testcafe version 0.23.2

Testcafe does not able to load iframe with latest version over firefox browser, but the same thing is working with node version :-14.15.4 testcafe version :- 0.23.2
0 votes
1 answer
60 views

Is there a way to add a condition when a button changes from visible to hidden in cypress?

I'm aware adding conditionals makes a flaky test. But I need to click the button only when it is visible, and the moment it is hidden i need to add another condition as it's CSS changes after a while. ...
  • 49
0 votes
0 answers
35 views

Cannot execute test when it is redirected to another application

It shows an error in the URL when an application is redirected to another application with an authentication token in the URL. I have an application that is redirected to another application when a ...
0 votes
1 answer
132 views

Playwright. How to skip all tests in a group if selector not found?

I am developing E2E tests with Playwright for angular app. I have to ensure that needed conditional selector exists in order to proceed, otherwise skip further tests. In other words I need to skip all ...
0 votes
1 answer
24 views

testCafe .switchToWindow() method - how to switch to new window using only part of the url hostname (or title)

I would like to switch to new window using just part of the url hostname. For example instead switchToWindow(w => w.url.host === 'testcafe.io') I would like to use sth like: (w => w.url.host =...
  • 1
0 votes
1 answer
22 views

TestCafe config setup for multiple environments

I'm wondering if it's possible to have a single .testcaferc.json file that provides config for all environments? We've got a lot of config that's shared, so I don't really want to create individual ...
  • 2,141
0 votes
0 answers
27 views

Is it possible to whitelist IPs (or otherwise disable bot detection) when running end-to-end tests against Google Sign in?

I would like to set up some end-to-end tests to make sure my Google Sign In button is working. I'd like to use tools such as: Cypress web tests Datadog live monitoring Mobile E2E tests to ensure my ...
  • 1,611
0 votes
1 answer
59 views

TestCafe on a Mac - no admin privileges

I'm trying to set up testing with TestCafe on my work Mac. However, every time I try to run my tests, I get the message about TestCafe requiring Screen Recording privileges: TestCafe requires ...
  • 702
0 votes
0 answers
80 views

Why detox gets stuck with the message " The app is busy with the following tasks: • 1 network requests with URLs "

I am using detox to run e2e tests. After running initial tests and login to the app, app gets stuck with the above mentioned message. Socket io gets start right away after the login. When i navigate ...
0 votes
1 answer
19 views

Need to verify and output similarities and differences of data tables in two excel sheets using testcafe. Is there an approach to do it in testcafe?

Compare data in two excel sheets using testcafe I need the approach to follow to compare data in two excel sheets using testcafe
0 votes
1 answer
49 views

Stencil's Puppeteer sometimes does not renders text or fonts

I'm trying to use Stencil e2e screenshot tests which have Puppeteer v10 under the hood. I'm facing the problem with texts and fonts. Sometimes they are hidden and sometimes they appear as they should. ...
1 vote
1 answer
75 views

Local storage is set to wrong domain in Cypress

Trying to test two subdomains in integration. However, localStorage is always set to first visited subdomain. Is it possible to set localStorage value to the later visited subdomain (bar.company.com) ...
  • 1,461
0 votes
0 answers
26 views

Testing with Detox and Expo RN. Start my e2e test in second screen

I'm new with e2e detox test. I'm trying to figure out how to test different screens one by one. But there's a way to test for example one screen (for example contact) without say "login inside ...
0 votes
1 answer
130 views

Create a test in Playwright with fetch calls

So i want to write a e2e test using Playwright, and this is what the website does (i'm using React): When it first renders, it fetches a random fact from an API, and then it uses the first three ...
0 votes
0 answers
12 views

Testcafe Source code is displayed instead of the application under test when Upgrading from 1.14 to a newer version

When using a newer version of testcafe than 1.14, the application under test will not show. Seems somthing related to authentication. Which is weird because on 1.14 there is no issue with it. But on ...
  • 1
0 votes
1 answer
75 views

E2e testing for Google Login with Puppeteer

I'm new to Puppeteer and trying to write an e2e test for a React app that enables logins using the GoogleLogin component from @react-oauth/google. The code below works until the Google sign in window ...
  • 225
0 votes
1 answer
15 views

How to share file with data-test-id attributes between frontend and automation testing projects/repos

I have front-end and end-to-end projects in separate repositories. And I'm wondering how to organize the work with data-test-id attributes that are used in the e2e project. I would like to stare them ...

1
2 3 4 5
60