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

XMLHttpRequest fails on withCredentials line - undefined object #6854

Closed
pliekhus opened this issue Feb 7, 2022 · 2 comments
Closed

XMLHttpRequest fails on withCredentials line - undefined object #6854

pliekhus opened this issue Feb 7, 2022 · 2 comments
Labels
SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).

Comments

@pliekhus
Copy link

pliekhus commented Feb 7, 2022

What is your Scenario?

When trying to call a lazy loaded JavaScript XMLHttpRequest call to load additional page data, hammerhead.js is throwing an error on the .withCredentials line

XHRWithCredentials

XHRWithCredentialsConsole

What is the Current behavior?

XMLHttp call fails in attached screenshots

What is the Expected behavior?

The XMLHttp request should be allowed to complete successfully. Page works outside the testing script.

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

https://www.rsaconference.com/experts

What is your TestCafe test code?

await t
.click(Selector('main a').withText('AGENDA'))
.click(Selector('main a').withText('FULL AGENDA'))

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. Open the Experts page using the Coveo search mechanism
  2. Error is thrown and page does not load - shows blank boxes
  3. Viewing the console shows the error being thrown by hammerhead

TestCafe version

1.18.3

Node.js version

14.5.0

Command-line arguments

testcafe "chrome" mobile-tests/**/* --reporter spec,xunit:report.xml --skip-js-errors --proxy-bypass *.coveo.com

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

@pliekhus pliekhus added the TYPE: bug The described behavior is considered as wrong (bug). label Feb 7, 2022
@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Feb 7, 2022
@Dmitry-Ostashev
Copy link
Contributor

Thank you for your report. I reproduced the issue with the testcafe-hammerhead module and the gulp https-playground --dev command.

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Feb 8, 2022
@miherlosev
Copy link
Collaborator

Duplicate of DevExpress/testcafe-hammerhead#2634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

3 participants