Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants