Can you put the calls to $resource into a service which you mock out using Protractor's browser.addMockModule()? That way, Protractor will always override your original service before it has a chance to run.

This could look something like

// in your application
myModule.service('myNotificationService', function($resource) {
  this.notification = $resource('/notification').get();
});

// In your Protractor test
browser.addMockModule('notificatonOverride', function() {
  angular.module('notificationOverride').service('myNotificationService', function() {
    this.notification = {}; // or whatever you need here.
  });
});


Protractor test vs long-polling
I was forwarded an anonymous concern about a photo or group site. I want to find the user id as the photo appears to have been removed. The link is https://www.facebook.com/photo.php?fbid=10155011880340063&amp;set=gm.891218424251397&amp;type=1&amp;theater.

From that URL, is there a way to find the Facebook user?
