I'm trying to do E2E testing on an application that is made up of multiple iframes, each with it's own Angular application. The different applications communicate with each other through a custom event bridge that we've written and there are certain scenarios that we'd like to be able to test that require interaction between the applications, so we can't just E2E test each application independently from the others.
AFAIK, there isn't a way to write a selector by itself to drill down into a specific iframe (something like 'iframe#pane1 input.email'), and so the way of doing this with jQuery is: $(iframe#pane1).contents().find('input.email). I was thinking about trying to add a custom dsl statement to ngScenario that works like using() to scope any chained selectors to a specific iframe (something like useframe('pane1').input('email') ), but I'm having trouble figuring out how I'd write that as another angular.scenario.dsl statement. Any ideas?
Has anyone successfully been able to do something like this with angular's E2E tests?