DevExpress/testcafe-hammerhead

Hammerhead.js typerror makes website crash

esbarila opened this issue · 5 comments

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

Hi @esbarila

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

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

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

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

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.