Skip to content

What about use puppeteer instead of phantomjs for e2e tests? #7500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dima-takoy-zz opened this issue Jan 21, 2018 · 6 comments
Closed

What about use puppeteer instead of phantomjs for e2e tests? #7500

dima-takoy-zz opened this issue Jan 21, 2018 · 6 comments

Comments

@dima-takoy-zz
Copy link
Contributor

What problem does this feature solve?

In my PR I should check for existence Function.bind.

Does really we should carry Function.bind polyfill in production builds for phantomjs?

We have 2 solutions:

  1. drop this code at build time
  2. move e2e tests to https://github.com/GoogleChrome/puppeteer (i personally prefer this)

cons:

  1. reduce vuejs size
  2. better tests performance

What does the proposed API look like?

...

@yyx990803
Copy link
Member

This is not just about tests. Vue may need to run in PhantomJS based tools like scrapers. This is about backwards compatibility.

@dima-takoy-zz
Copy link
Contributor Author

so strange use case. and it costs some bytes in every build.

So maybe support delete this code at building time? We rly dont need carry it for ALL users.

@dima-takoy-zz
Copy link
Contributor Author

wait.

We carry polyfill for case when any vuejs site can be scrapped?
We increase bundle size for every build for ^ case?

I just didn't understood.

@LinusBorg
Copy link
Member

As Evan said:

This is about backwards compatibility.

It would be a breaking change, and we wont do a mjor release for this (or plan one in the near future, in general).

@posva
Copy link
Member

posva commented Jan 22, 2018

FYI the extra size is small enough to be worth. It happens with multiple things that are also not supported by some browsers like Internet Explorer

@yyx990803
Copy link
Member

Your site is built in Vue. A site scraper built with PhantomJS used to be able to scrape your site. Now with a patch update your site suddenly break in the scraper.

The tradeoff is not bytes vs. use case, it's about bytes vs. backwards compat.

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

No branches or pull requests

4 participants