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

returning to angular after non-angular login doesn't work #4

Closed
thatbudakguy opened this issue Apr 21, 2017 · 1 comment
Closed

returning to angular after non-angular login doesn't work #4

thatbudakguy opened this issue Apr 21, 2017 · 1 comment

Comments

@thatbudakguy
Copy link

I have a spec almost identical to the nonAngularLoginSpec - loading a non-angular page basically the same as nonAngularLoginPage, entering credentials, and then returning to Angular (something like friendsPage). When I test for the equivalent of friendsPage.at(); I always get:

  - Expected false to be truthy.

Presumably this is because browser.ignoreSynchronization = true; is still enabled, but even if I manually add browser.ignoreSynchronization = false; and/or browser.waitForAngular(); before testing friendsPage.at();, protractor still won't wait for angular to load. Any ideas?

@qualityshepherd
Copy link
Owner

This isn't a bug, and should be asked via Stack Overflow.

That said, I was curious, so I tried adding an angular test (from friendSpec) at the end of the nonAngularLoginSpec, and it did indeed fail. But if I put in a friendsPage.goto() (note: used to be to()) in the spec, it worked like a charm.

Not sure if adding browser.ignoreSynchronization = true; to non-angular pages is a convention, but it seems like it could be :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants