skip to Main Content

Why does Puppeeteer cause my test suite to hang for 30 seconds when I use "waitForSelector" even though I'm calling "close" on the page and browser? – Ubuntu

I have a Node.js Mocha test suite (I've created a minimal reproduction based on the real world application I was trying to create an automated test for). package.json: { "name": "puppeteer-mocha-hang-repro", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test":…

VIEW QUESTION

Nock: No match for request – Shopify

My nock call looks like as below app_url='myshop.app.com' result = nock(app_url, { reqheaders: { "content-type": "application/json", 'authorization': 'Basic Auth' } }) .get('/admin/products.json?collection_id=10001&limit=250&fields=id') .reply(200, { "products": [ { "id": 101}, {"id": 102}, ] }); Resolve : (node:1378) UnhandledPromiseRejectionWarning: Unhandled promise rejection…

VIEW QUESTION
Back To Top
Search