I have a Pyramid app running on http://localhost:6543
.
- This app serves the AngularJS app at /.
- This app utilizes socket.io.
The query is: Can I test this application using these tools?
In my scenario.js
file, I have the following:
beforeEach(function() {
browser().navigateTo('http://localhost:6543/');
});
However, when I try to launch testacular (with run
or start
), I encounter the following error message:
Chrome 23.0 registration: should delete all cookies when user clicks on "remove all" button FAILED
browser navigate to 'http://localhost:6543/'
/home/abourget/myapp/jstests/scenarios/registration_scenario.js:9:5: Sandbox Error: Application document not accessible.
It seems that the browser restricts access to the iframe
's document due to Cross-Origin violations.
Here's what I've tried:
- Attempting to proxy to my app using the Testacular web server (using the
proxies
option), but encountered conflicts with Testacular's framework serving at/
. Additionally, both apps trying to use/socket.io
resulted in conflicts. - Exploring the reverse approach by tweaking my app to proxy to Testacular's server, yet faced similar issues with
/socket.io
.
Appreciate these fantastic tools!