Acceptance test with child window

I’m testing the oAuth flow for our app which uses torii to pop a child window for the fb / google / twitter auth part - how can I automate that stuff?