Skip to content
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

[polymer-test] error with Chrome 66 and 67 #509

Closed
felixzapata opened this issue Jun 12, 2018 · 14 comments
Closed

[polymer-test] error with Chrome 66 and 67 #509

felixzapata opened this issue Jun 12, 2018 · 14 comments
Labels

Comments

@felixzapata
Copy link
Contributor

felixzapata commented Jun 12, 2018

Hi all, when I launch my tests, the browser window it looks like broken.

polymer test -l chrome --npm

I use "web-component-tester": "^6.6.0" as a devDependency.

captura de pantalla 2018-06-12 a las 10 19 39

captura de pantalla 2018-06-12 a las 11 26 10

captura de pantalla 2018-06-12 a las 12 04 17

I can't see the results of the test on it neither open the console to debug. This happen to another colleague of my team.

This happen with chrome 66 and 67.

My version of Polymer Cli is 1.6.0. It also happens with version 1.7.2.

@felixzapata felixzapata changed the title Error with Chrome 66 and 67 [polymer-test] error with Chrome 66 and 67 Jun 12, 2018
@TimvdLippe
Copy link
Contributor

Could you provide a reproduction case which allows us to inspect it? This can be a GitHub repo with setup instructions if that is easier for you.

@felixzapata
Copy link
Contributor Author

felixzapata commented Jun 12, 2018

hi, I am going to try to describe the configuration because after three hours of work, I've tested dozens of combinations in order to try to fix it. My current configuration is:

  • Node 8.0.0 (I was using Node < 8 but I have had to update in order to try with Polymer cli 1.7.x)
  • Polymer 1.x
  • Polymer cli 1.7.2
  • Chrome v67.x
  • Inside the package.json of the project:
"devDependencies": {
    "wct-browser-legacy": "^1.0.1",
    "web-component-tester": "^6.6.0"
  }

My colleague has:

  • Node < 8
  • Polymer 1.x
  • Polymer Cli 1.6.x
  • Chrome v66.x
  • Inside the package.json of the project:
"devDependencies": {
    "web-component-tester": "^6.6.0"
  }

wct-browser-legacy as far as I know it is only need it with Polymer Cli 1.7.x.

We obtain the same error with "web-component-tester": "^6.5.0".

We run the tests with:

polymer test -l chrome --npm
polymer test -l firefox --npm (the only problem with firefox is that there is no output of the console lines, but the rest it is ok)

We did not not have this problem a few days ago and we have not made any changes in our platform related with the versions of the libraries related with the tests.

I do not know if it is related with the Chrome driver. Now, it is supposed that it launches Chrome driver 2.37 but the error is the same.

@TimvdLippe
Copy link
Contributor

Polymer 1.x

I do not think you should be testing with the --npm flag, as Polymer 1 still used HTML imports and Bower. You can test this yourself by using polymer serve and inspect the test page yourself

@felixzapata
Copy link
Contributor Author

felixzapata commented Jun 12, 2018

No, I can't. We have our tests inside an application (like for example the tests inside the Polymer News) but we do not serve our application with Polymer serve.

The --npm flag works for us with Polymer 1.x.. Our tests were working without problems in the browsers using this flag.

The tests works on terminal but if you need to stop the browser to check something, or show something via console, the browser is broken.

I am sure that with Chrome 65 I had not this problem.

@felixzapata
Copy link
Contributor Author

I'm going to try to reproduce the error using the same configuration with the tests inside of the Polymer News project (with a Polymer 1.x version).

@felixzapata
Copy link
Contributor Author

felixzapata commented Jun 12, 2018

Instead of the Polymer News, I've run the tests of the version with Polymer 1.x of the Polymer Starter Kit (version 2.2.0):

polymer test -l chrome --npm -p

captura de pantalla 2018-06-12 a las 13 55 32

I've modified the package.json file adding:

"wct-browser-legacy": "^1.0.1",
"web-component-tester": "^6.6.0"

And then, in test/index.html, I've replaced <script src="../bower_components/web-component-tester/browser.js"></script> with <script src="../node_modules/web-component-tester/browser.js"></script>.

@felixzapata
Copy link
Contributor Author

It also happens with the master branch (Polymer 3.x) of Polymer Starter Kit.

captura de pantalla 2018-06-12 a las 14 28 23

and with version 3.2.1 of Polymer Starter Kit (with Polymer 2.x):

captura de pantalla 2018-06-12 a las 14 37 12

Both tests, just a fresh install and running the tests via command line:

polymer test -l chrome -p

@felixzapata
Copy link
Contributor Author

@TimvdLippe any news about this issue?

@TimvdLippe
Copy link
Contributor

TimvdLippe commented Jun 15, 2018 via email

@felixzapata
Copy link
Contributor Author

felixzapata commented Jun 19, 2018

but it happens with fresh install of the projects and Chromes 66 and 67. And it also happens to one of my colleagues.

@jsilvermist
Copy link
Contributor

It's working fine for me too, seems almost like you have something blocking it at an app level.

Do you and your colleagues all use a certain antivirus, firewall, etc?

@felixzapata
Copy link
Contributor Author

felixzapata commented Jun 19, 2018

We have the same laptop and no antiviruses, firewall. My colleague has Polymer cli version 1.6.x with Chrome 66 and I have Chrome 67 with Polymer cli version 1.7.x (and Node version 8). I had Polymer cli version 1.6.x but I updated it in order to mix this problem.

Under Firefox the tests are fine but with Chrome we can't debug in the browser. We had no problems with Chrome until the last two versions.

@stale
Copy link

stale bot commented Mar 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 4, 2020
@stale
Copy link

stale bot commented Apr 28, 2022

This issue has been automatically closed after being marked stale. If you're still facing this problem with the above solution, please comment and we'll reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants