Test Cafe Script throwing JS Errors #8067
Labels
FREQUENCY: level 1
STATE: Issue accepted
An issue has been reproduced.
TYPE: bug
The described behavior is considered as wrong (bug).
What is your Scenario?
We are currently using test cafe to test Apple Pay demo website: https://applepaydemo.apple.com/, on opening that website Apple Pay button was not shown, initially it was due to website being not served over https and hence Apple Pay was giving error that website is not served is secure context.
Then we followed the doc: https://testcafe.io/documentation/402839/guides/advanced-guides/test-https-features-and-http2-websites
After serving the website over https, it no longer gives error for secure context.
But we are receiving another JS error:
This error does not come without Test Cafe and website works fine too.
The code also looks to be coming from Hammerhead script.
What is the Current behavior?
JS error coming and Apple Pay Button being not visible.
What is the Expected behavior?
No errors should come, and Apple Pay button should be visible.
What is the public URL of the test page? (attach your complete example)
https://applepaydemo.apple.com/
What is your TestCafe test code?
Your complete configuration file
No response
Your complete test report
No response
Screenshots
Error:
Current behavior:
Expected behavior:
Steps to Reproduce
TestCafe version
3.3.0
Node.js version
v16.20.2
Command-line arguments
testcafe safari -e test.js --ssl pfx=testingdomain.pfx;rejectUnauthorized=true;
Browser name(s) and version(s)
Safari 15.6.1
Platform(s) and version(s)
macOS 12.6.2
Other
No response
The text was updated successfully, but these errors were encountered: