DevExpress / testcafe-hammerhead

A powerful web-proxy used as a core for the TestCafe testing framework. :hammer: :smiley:
https://testcafe.io
MIT License
174 stars 163 forks source link

Hammerhead.js typerror makes website crash #2859

Closed esbarila closed 1 year ago

esbarila commented 1 year ago

What is your Scenario?

Navigate to dev.remo.co

What is the Current behavior?

TypeError: Cannot read properties of undefined (reading 'ondevicechange')

It makes the app crash, can't start tests.

What is the Expected behavior?

should get to the Login screen.

What is your public website URL? (or attach your complete example)

https://dev.remo.co

What is your TestCafe test code?

fixture('Signup').page("https://dev.remo.co/");

Your complete configuration file

none yet

Your complete test report

No response

Screenshots

Screenshot from 2023-02-28 13-48-51

Steps to Reproduce

  1. Navigate to https://dev.remo.co

TestCafe version

2.1.0

Node.js version

v14.18.2

Command-line arguments

testcafe chrome test.js

Browser name(s) and version(s)

chrome 110

Platform(s) and version(s)

Linux Ubuntu 22.04.2

Other

No response

Aleksey28 commented 1 year ago

Hi @esbarila

I managed to reproduce the issue. As a workaround, try using the Proxyless Mode. We are actively working on this mode.

esbarila commented 1 year ago

@Aleksey28 Thanks for the update! The proxyless mode doesn't seem to help though. Tried using CLI, Im assuming no need to add to the config file if forced through the terminal.

Aleksey28 commented 1 year ago

I opened this page in proxyless mode and got no errors. Please describe why proxyless mode didn't help you.

esbarila commented 1 year ago

I opened this page in proxyless mode and got no errors. Please describe why proxyless mode didn't help you.

Im still getting the same error as original, Im running the test like this testcafe chrome tests/test.js --experimental-proxyless Also added a testcaferc.json file with the experimentalProxyless config to true but no chance.

EDIT: disregard, i was using an old version of testcafe which didn't support experimentalProxyless

miherlosev commented 1 year ago

Hi @esbarila,

As far as I understand, the issue is resolved by using the experimentalProxyless option. If you need to run tests in other browsers, please reopen this issue.