We are using socket.io to send messages back to the client; I'd like to write a test in FuncUnit that simulates this event. However, I can't get access to the controller via Selenium since it doesn't marshal objects across the bridge (like S('.my_div').controller()).
Is there anyway to simulate this? I basically need some way of invoking a controller method without any interaction on the view.
1) Build a test-enabled version of your page. Either build a separate page that simulates these messages based on some other user action in the page, like clicking a button, or enable/disable this functionality via a URL param, which you can pass through S.open.
2) I've been working the past couple weeks on a new FuncUnit architecture, which will make this loads easier. There won't be a Selenium/browser distinction, so you'll be able to access anything in the app window via S._window.