Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace rootEl with browser.setAngularRoot() #3996

Merged
merged 3 commits into from Jan 26, 2017

Conversation

heathkit
Copy link
Contributor

Implements #3947. This is the other side of angular/blocking-proxy#21

*
* @param {string} The new selector.
*/
setAngularAppRoot(value: string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably return a promise so that we can use it in the async/await world.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, done

@heathkit heathkit merged commit 4a59412 into angular:master Jan 26, 2017
@heathkit heathkit deleted the bp-fixes branch January 26, 2017 22:36
igniteram pushed a commit to igniteram/protractor that referenced this pull request Feb 21, 2017
Replace browser.rootEl with browser.setAngularRoot(), which changes the root element in a promise on the control flow. Note that browser.rootEl will immediately return the current value, but browser.setAngularRoot() will return a promise that resolves during the next step in the control flow.

Also update to BlockingProxy 0.0.3, which allows changing rootSelector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants