jocelyn-stericker / electric-huxley Goto Github PK
View Code? Open in Web Editor NEWCodeless front-end testing with an emphasis on speed
Codeless front-end testing with an emphasis on speed
Looking into a fix, but figured I'd put the bug here first. After an npm test
I get this:
Unhandled rejection RangeError: "port" argument must be >= 0 and < 65536
at assertPort (internal/net.js:17:11)
at Server.listen (net.js:1388:5)
at ReqSocket.Socket.bind (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/axon/lib/sockets/sock.js:398:15)
at /Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/electric-huxley/src/lib/browser.js:108:10
at tryCatcher (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/bluebird/js/main/util.js:26:23)
at Promise._resolveFromResolver (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/bluebird/js/main/promise.js:480:31)
at new Promise (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/bluebird/js/main/promise.js:70:37)
at createBrowser (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/electric-huxley/src/lib/browser.js:92:15)
at Object.module.exports.createBrowser (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/electric-huxley/src/lib/browser.js:150:12)
at tasks.screenshotTask (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/electric-huxley/src/lib/index.js:315:20)
at /Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/electric-huxley/src/lib/index.js:118:5
at tryCatcher (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/bluebird/js/main/util.js:26:23)
at Promise._resolveFromResolver (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/bluebird/js/main/promise.js:480:31)
at new Promise (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/bluebird/js/main/promise.js:70:37)
at runTasks (/Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/electric-huxley/src/lib/index.js:117:10)
at /Users/alex/stripe/pay-server/frontend/bootstripe/node_modules/electric-huxley/src/lib/index.js:137:14
Looks like the body
element is swapped out when taking a screenshot: https://github.com/jnetterf/electric-huxley/blob/master/src/renderer/preloaded.js#L82
Because of this, if a <style>
element on a test page is in the <head>
, it is ignored. The obvious and easy workaround is to make sure any embedded styles on test pages are in the <body>
. However, seems like something that could be fixed, or at least mentioned in the docs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.