Skip to content

ZEPPELIN-5542 Use headless Firefox instead of PhantomJS#4237

Closed
martin-g wants to merge 1 commit intoapache:masterfrom
martin-g:zeppelin-5542-use-headless-firefox-for-e2e-tests
Closed

ZEPPELIN-5542 Use headless Firefox instead of PhantomJS#4237
martin-g wants to merge 1 commit intoapache:masterfrom
martin-g:zeppelin-5542-use-headless-firefox-for-e2e-tests

Conversation

@martin-g
Copy link
Copy Markdown
Member

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-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

@epugh
Copy link
Copy Markdown

epugh commented Sep 28, 2021

Any thoughts on using Puppeteer instead? I migrated from PhantomJS to that project.

@martin-g
Copy link
Copy Markdown
Member Author

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 :-/

@epugh
Copy link
Copy Markdown

epugh commented Sep 28, 2021

I might just try and copy what you did here for testing on https://github.com/o19s/quepid ;-)

@zjffdu
Copy link
Copy Markdown
Contributor

zjffdu commented Oct 7, 2021

@martin-g & @epugh What's the difference between Puppeteer and PhantomJS, I am not frontend expert. If there's no major difference, I am fine with any of them.

@martin-g
Copy link
Copy Markdown
Member Author

martin-g commented Oct 7, 2021

PhantomJS is a wrapper around QtWebKit.
Puppeteer is a wrapper around Chromium/Google Chrome.

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.

@jongyoul
Copy link
Copy Markdown
Member

jongyoul commented Oct 8, 2021

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.

@zjffdu
Copy link
Copy Markdown
Contributor

zjffdu commented Oct 12, 2021

I will merge this if no more comment

@asfgit asfgit closed this in e29fc93 Oct 13, 2021
zlosim pushed a commit to zlosim/zeppelin that referenced this pull request Oct 22, 2021
### 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
zlosim pushed a commit to zlosim/zeppelin that referenced this pull request Oct 22, 2021
### 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
JasonLeeCoding pushed a commit to JasonLeeCoding/zeppelin that referenced this pull request Jan 5, 2022
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants