In the process of migrating a legacy app to Angular we have a setup where the legacy app loads the new up in an iframe. We want to test this integration with Protractor. The legacy app is not an Angular app.
We'd be able to test if the legacy app had Angular, but it doesn't, so Protractor has trouble switching context into the iframe where the Angular app lives.
How should this be done?
Edit: Protractor fails as follows.
After the iframe comes up and doing
browser.switchTo().frame(...);
Protractor is unable to find controls that are inside the iframe. We've tested the case outside the iframe and Protractor finds the buttons and links and fields just fine in the Angular app. But when the same page is loaded in an iframe it acts as though they weren't there.