ZEPPELIN-5542 Use headless Firefox instead of PhantomJS#4237
ZEPPELIN-5542 Use headless Firefox instead of PhantomJS#4237martin-g wants to merge 1 commit intoapache:masterfrom martin-g:zeppelin-5542-use-headless-firefox-for-e2e-tests
Conversation
|
Any thoughts on using Puppeteer instead? I migrated from PhantomJS to that project. |
|
I've tried to use Puppeteer in another project about an year ago and I wasn't able to make it work for some reason :-/ |
|
I might just try and copy what you did here for testing on https://github.com/o19s/quepid ;-) |
|
PhantomJS is a wrapper around QtWebKit. Since you already use Karma.js IMO there is no need to switch to totally new solution. Just change the karma launcher. One advantage of Puppeteer is that it can download the browser for you. With Karma.js you have to make sure the browser is pre-installed. |
It looks attractive when we test on the local machine. BTW, I'm also not an expert for frontend so I'm not sure how it takes cost when we change it but I, sometimes, hope we could change to Puppeteer. |
|
I will merge this if no more comment |
### What is this PR for? Replaces the usage of PhantomJS for the JavaScript tests with headless Firefox. PhantomJS is not maintained since few years. Using a real browser will make the tests more close to the real usage. ### What type of PR is it? Improvement ### What is the Jira issue? * Jira https://issues.apache.org/jira/browse/ZEPPELIN-5542 ### How should this be tested? * `mvn test -Pweb-e2e` should pass for `zeppenlin-web` module ### Questions: * Does the licenses files need update? - NO * Is there breaking changes for older versions? - NO * Does this needs documentation? - NO Author: Martin Tzvetanov Grigorov <[email protected]> Closes apache#4237 from martin-g/zeppelin-5542-use-headless-firefox-for-e2e-tests and squashes the following commits: 554c9f2 [Martin Tzvetanov Grigorov] ZEPPELIN-5542 Use headless Firefox instead of PhantomJS
### What is this PR for? Replaces the usage of PhantomJS for the JavaScript tests with headless Firefox. PhantomJS is not maintained since few years. Using a real browser will make the tests more close to the real usage. ### What type of PR is it? Improvement ### What is the Jira issue? * Jira https://issues.apache.org/jira/browse/ZEPPELIN-5542 ### How should this be tested? * `mvn test -Pweb-e2e` should pass for `zeppenlin-web` module ### Questions: * Does the licenses files need update? - NO * Is there breaking changes for older versions? - NO * Does this needs documentation? - NO Author: Martin Tzvetanov Grigorov <[email protected]> Closes apache#4237 from martin-g/zeppelin-5542-use-headless-firefox-for-e2e-tests and squashes the following commits: 554c9f2 [Martin Tzvetanov Grigorov] ZEPPELIN-5542 Use headless Firefox instead of PhantomJS
### What is this PR for? Replaces the usage of PhantomJS for the JavaScript tests with headless Firefox. PhantomJS is not maintained since few years. Using a real browser will make the tests more close to the real usage. ### What type of PR is it? Improvement ### What is the Jira issue? * Jira https://issues.apache.org/jira/browse/ZEPPELIN-5542 ### How should this be tested? * `mvn test -Pweb-e2e` should pass for `zeppenlin-web` module ### Questions: * Does the licenses files need update? - NO * Is there breaking changes for older versions? - NO * Does this needs documentation? - NO Author: Martin Tzvetanov Grigorov <[email protected]> Closes apache#4237 from martin-g/zeppelin-5542-use-headless-firefox-for-e2e-tests and squashes the following commits: 554c9f2 [Martin Tzvetanov Grigorov] ZEPPELIN-5542 Use headless Firefox instead of PhantomJS
What is this PR for?
Replaces the usage of PhantomJS for the JavaScript tests with headless Firefox.
PhantomJS is not maintained since few years.
Using a real browser will make the tests more close to the real usage.
What type of PR is it?
Improvement
What is the Jira issue?
How should this be tested?
mvn test -Pweb-e2eshould pass forzeppenlin-webmoduleQuestions: