Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
84 views

I'm trying to test that a particular element's event listener successfully throws an error. I want to catch the error so that my test does not automatically fail, but I'm not able to for some reason. ...
Eric's user avatar
  • 1,685
0 votes
1 answer
60 views

I'm bumping into an issue importing a helper function, which calls Puppeteer methods, into a test file. I've created a simplified example of my problem. I have a test in a file called my-test.test.js: ...
Eric's user avatar
  • 1,685
0 votes
1 answer
99 views

I am automating an web application and I need to type in a value in an input text box. My plan is to develop an friendly function, where in if I pass the label associated with the text , I should be ...
Timothy Rajan's user avatar
0 votes
1 answer
61 views

I have an express server that serves a React app for GET requests and runs other processing for POST. I'm using light-my-request to test all of the POST functionality. The server.js file contains the ...
Rob Gravelle's user avatar
0 votes
1 answer
184 views

What could be the reason of me not being able to access the Proxy of the CustomPage class in my test file? I get this error... enter image description here const puppeteer = require("puppeteer&...
Aleksandregvrm's user avatar
-3 votes
1 answer
657 views

I have written E2E tests using Jest, Puppeteer, and ReactJS for a Chrome extension. And I am not getting how can I generate its coverage report. Nothing seems to be working. I tried generating ...
Himanshu singh's user avatar
0 votes
1 answer
1k views

When I run these tests locally or in sequence on GitHub it generate Allure Report but when I run it parallel using three different GitHub instance it generate only result for the last executed test ...
Shadow Walker's user avatar
0 votes
0 answers
3k views

I'm running into a timeout error when using Puppeteer to navigate to a heavy website with lots of videos. I've increased the timeout to 690000 ms using page.goto(), and set the default navigation ...
Jacob Cooper's user avatar
1 vote
1 answer
406 views

I am a newbie at running Jest puppeteer. I'm trying to run a test suite locally that I did not write. All the tests fail to run and I get this error pointing at beforeEach... "beforeEach(async () ...
Jessi's user avatar
  • 823
0 votes
1 answer
492 views

I setup jest-puppeteer and it was really easy to make it work, and it is fast enough for what I was looking for. The issue that I am having is that, at the moment I have two tests and both have the ...
Ricardo Silva's user avatar
0 votes
2 answers
398 views

I'm running jest tests using puppeteer. On some of them I manually add some specific css styles and other tweaks like the following: const content = ` *, *::after, *::before { ...
Bertuz's user avatar
  • 2,618
1 vote
1 answer
554 views

I am using Puppeteer for UI automation with jest Framework. i had worked previously selenium and used extend report i want similar kind of reporting with puppeteer. Is there a way i can use extent ...
Sunny More's user avatar
0 votes
0 answers
2k views

So I created my first web scrapper with Puppeteer and it works fine. I call the scrapper function in my server at 5mins time intervals but after calling it a couple times about 10 to 15 times, i begin ...
Ebuka's user avatar
  • 49
1 vote
0 answers
91 views

I have 10 test cases in jest (Note: all tests are in .test.ts extension, for eg: frontPageTest.test.ts). I want to run the 10 test cases in Desktop view first, then the 10 test cases should run in ...
Sriram Sundar's user avatar
2 votes
1 answer
255 views

when learn puppeteer/jest, many tutorial articles example are the same,like: const timeout = 10000; beforeAll(async () => { await page.goto(URL, { waitUntil: "domcontentloaded" }); })...
Michael.Andromeda's user avatar
1 vote
2 answers
2k views

Problem Summary Storybook snapshot test on static storybook returning blank screenshots even though they look fine on localhost:8080 when I ran npx http-server storybook-static Tech stack and relevant ...
Beast's user avatar
  • 457
0 votes
0 answers
187 views

How to intercept multiple http requests (API calls) with jest & puppeteer environment? I have the following code but I get error Request already handled when I make more than one API call. Code: ...
user923499's user avatar
1 vote
1 answer
717 views

I have a large number of tests, contained in "suites" or files, probably about 10-15 tests in each suite. The issue I'm having is that if the first test in a suite fails, then it just skips ...
Dan Walker's user avatar
-1 votes
2 answers
1k views

I thought I understood what headless was in jest-puppeteer. I understood it to be a way to run tests without running through the tests in the browser. When I look at this documentation headless ...
slipperypete's user avatar
  • 6,374
1 vote
1 answer
1k views

I want to use jest and puppeteer to do e2e testing on a react app. I want the dev server to start up as part of the command to start the tests. In other words, I dont want to have to start the dev ...
slipperypete's user avatar
  • 6,374
2 votes
0 answers
699 views

I have recently started to write some tests using jest and I need to run some code in a real browser, so I decided to go with jest-puppeteer, the problem I have with the package is when we use jsdom ...
Sara's user avatar
  • 21
0 votes
0 answers
1k views

What I am trying to do is: Load the page Gain access to the contents of an external css named "mystyle.css" Check if ".some_class" border has the value "2px" I have ...
Faith Baghan's user avatar
1 vote
1 answer
458 views

In my Typescript repository containing Puppeteer UI tests, i have a jest.config.ts file that was recently updated to export an async object because we had to make api calls to fetch information that ...
neonidian's user avatar
  • 1,273
2 votes
1 answer
683 views

I have a Next.js app with a separate Express API. I Want to run an e2e test using Jest with puppeteer in Github Actions to automatically build and run both apps and then test them. Building, running ...
Mike van Egmond's user avatar
0 votes
0 answers
47 views

I have a stepwizard where the next button triggers a post request before navigating to next the step. await page.click('[data-test-next-step]'); await page.waitForSelector(['data-test-address-...
Antuan's user avatar
  • 511
0 votes
0 answers
123 views

<div class="MuiGrid-root jss62 MuiGrid-item MuiGrid-grid-xs-12"><div class="MuiGrid-root jss107" style="background: linear-gradient(to left, rgb(244, 67, 54) 40%, lightgrey 150%); box-shadow: ...
Explorer's user avatar
0 votes
1 answer
753 views

var eleLoginButton = await page.waitForXPath("//input[@class='._ant-btn._ant-btn-primary']") await eleLoginButton.click() My Code is not getting Excuted if I have written it like this.
Abhishiktha's user avatar
0 votes
2 answers
589 views

I have the following code <div class="editor-options"> <div class="editor-item"> <label>Name</label> <input type="text" ...
Jeuke's user avatar
  • 173
1 vote
1 answer
311 views

I just added jest-puppeteer to include it in my testing suites. Part of the setup is to remove testEnvironment:"jsdom" in my jest.config.js according to https://github.com/smooth-code/jest-...
Nick.K's user avatar
  • 398
0 votes
1 answer
197 views

Has anybody used fixtures (json file) to load the data in postgres database and execute UI testing ?
Amit Kulkarni's user avatar
1 vote
0 answers
1k views

im currently trying to catch an error occured by injected script. what ive done const path = require('path'); const puppeteer = require('puppeteer'); describe('Test page', () => { it('should ...
ddeadlink's user avatar
  • 247
0 votes
0 answers
51 views

The scenario is like: Go to : https://paytm.com/ Click on signup button [frame window will be opened] click on watchVideo button click on close button close the frame by clicking on X button. note: ...
Sumit Jain's user avatar
6 votes
2 answers
930 views

I have the following testcase: it('User can logout', async () => { await helper.navClick('.header-user-action__logout'); const url = page.url(); console.log(url) await expect(url)....
Jonas S.'s user avatar
  • 133
2 votes
2 answers
2k views

Many Similair questions here (...), but none that help me to get a pure Stencil configuration. The config-administration should be left to Stencil as much as possible IMO (...) My Stencil component ...
sneeuwitje's user avatar
1 vote
1 answer
1k views

Goal: I am writing a Puppeteer test which needs to listen for a certain response, check that the response url is of a certain format, and then save the response so that the values in the body can be ...
Marlo's user avatar
  • 514
1 vote
0 answers
278 views

I am attempting to write a test using Jest and puppeteer for an email field. The problem is that I cannot seem to figure out how to get this test working. What I want to test is that if a user types ...
JohnB_93's user avatar
2 votes
0 answers
790 views

in a project that requires: Starting each session with logging in credentials + notification/OTP work with multiple accounts asynchronously remote debugging or monitoring of the session 5+ different ...
aypar's user avatar
  • 31
1 vote
2 answers
736 views

I have a list of checkboxes , every time puppeteer run the test I need to : if a box is already selected then move to next box and select it , and if the next is selected move to the next checkbox ...
Adam's user avatar
  • 31
4 votes
1 answer
65 views

I need to open a browser and switch to the current page (e.g. stackoverflow.com) then close the browser and open it again with this saved page (e.g. stackoverflow.com). I know that in the browser ...
Trinity's user avatar
  • 91
0 votes
1 answer
369 views

I am trying to use puppeteer for e2e testing on a react app. I'd prefer to use TypeScript, so I've tried to start with a file that begins with: import puppeteer, { Browser, Page } from "puppeteer&...
MikeSteigerwald's user avatar
2 votes
1 answer
3k views

I am having the code as given below: let btns = await page.$$(".move-to-preview-env"); let addToRepl = await btns[0]; let moveBtn = await btns[1]; console.log('addtoRepl ', addToRepl) // I ...
Rupesh's user avatar
  • 890
2 votes
0 answers
952 views

I am looking for a way to respond block when being asked about sharing my location I got to the point that I do const context = browser.defaultBrowserContext(); context.clearPermissionOverrides(); I ...
Augusto Garcia's user avatar
0 votes
1 answer
371 views

While testing my page, an error is thrown from the dependency. The error is not critical and does not interfere with my application. But when testing with a puppeteer, with this error, he simply ...
Ivan Savoskin's user avatar
1 vote
0 answers
164 views

I'm working on automation project , and I need to know how to use puppeteer-Jest to check if the chrome extension is enabled or disabled? if the extension is enabled run these steps , if not run other ...
Adam's user avatar
  • 31
0 votes
1 answer
254 views

I have a page in pupeteer in which I'm trying to initiate a file upload and it has to uploading buttons. the problem is both buttons that initiate the file upload have the same type and selector. This ...
Rashid Osman's user avatar
0 votes
0 answers
617 views

I am currently doing 40+ tests (they can take up to 20+ minutes and will grow unfortunately) for a web-app, and was thinking of running multiple browsers in order to run tests in parallel. I am ...
ka_lin's user avatar
  • 9,422
5 votes
0 answers
514 views

After upgrading to Big Sur, some of my jest tests throws this error. It also spams the console with Chromium[29916:572689] Warning: Expected min height of view: (<NSButton: 0x7ffe74b9ac90>) to ...
Zandew's user avatar
  • 98
0 votes
1 answer
399 views

I came across one big issue combining puppeteer with jest. Whenever I hit "npm run test" this test fails displaying: "Timeout - Async callback was not invoked within the 5000 ms timeout ...
IlyaNesterow17's user avatar
0 votes
1 answer
612 views

I am trying to run a simple puppeteer script with jest. Below is my package.json contents: { "name": "jest-puppeteer-project", "version": "1.0.0", &...
Anil Kumar's user avatar
2 votes
0 answers
469 views

I have a problem with snapshot testing. Tests I take locally are generating snapshots that look like they supposed to (i.e a table in the right place, popups, etc..). But then when Percy.io runs the ...
asdsd's user avatar
  • 99