question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Protractor and angular-oauth2-oidc timeout issue

See original GitHub issue

When we run e2e tests with protractor we get below timeout error…

- Failed: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds. This may be because the current page is not an Angular application. Please see the FAQ for more details: https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular While waiting for element with locator - Locator: By(css selector, *[id="title"])

It seems similar issue as #248 - I tried with version 4+ but still the same issue…some background process(s) is running too long.

e2e test cases were working fine when we were using "angular2-oauth2": "^1.3.10" we recently upgraded to angular-oauth2-oidc since we required id_token for authorization.

Current version: angular-oauth2-oidc : v3.1.4 node : v10.6.0 npm: V6.1.0 angular: v5.1

@manfredsteyer This is very critical for our e2e testing and blocking our progress, please help us. Let me know if you need any additional information.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
jrmcdonacommented, Dec 14, 2018

Cool thanks I got it working in onPrepare.

1reaction
jbsourcecommented, Jul 23, 2018

@jeroenheijmans Thanks Jeroen for help…we upgraded to ng6 and use odic version 4, it works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Authentication with OpenID Connect and Okta in 20 ...
I had this error and it disappeared when I got to the chapter Authentication with the Okta Auth SDK, the responseType etc isn't...
Read more >
Angular 2 & Protractor Timeout: Here's How to Fix It
If testing your Angular 2 application with Protractor fails with a timeout, your asynchronous operations might run in the wrong zone.
Read more >
Angular 9/OAuth2/OIDC and Routing Issue - Stack Overflow
I have implemented a basic Oauth2/OIDC silent-refresh with the angular-oauth2-oidc API and am having some issues getting links to specific ...
Read more >
angular/angular - Gitter
anyone know how I can implement "require" concept from angularjs to angular? I have document-view I want all child components to easily be...
Read more >
logout when browser is closed angular - You.com
As an alternative, you could give the tokens an expiration time that is ... I'm evaluating using the angular-oauth2-oidc package in an Angular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found