I'm confused on how to go about e2e testing an angular app running on grails. Grails is running my app and providing the endpoints, but the Karma suite only uses the browser as an engine to run the javascript. Therefore, my endpoints aren't in the "karma world" when the tests execute. How can I do something like the following?
describe('e2e', function() {
beforeEach(function() {
browser().navigateTo('/alerts/');
});
}
Where the /alerts
endpoint is defined and routed through grails. Can this be done, or do I have to setup some sort of grails-karma plugin?