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.

Integration with testability API

See original GitHub issue

Issue description I’m doing end-to-end testing of my app (that uses angular2-google-maps).

I’m resorting to the testability API of Angular, to wait for angular to be stable before doing my actions (just like protractor does), i.e. I wait for

window.getAllAngularTestabilities()[0].isStable()

to return true.

It seems angular2-google-maps often leaves pending tasks in the zone (hard to debug, as there is no API to inspect the pending tasks, see https://github.com/angular/angular/issues/8219). Hence it is never stable, and my tests are blocked.

It would be nice to make sure there are no pending tasks in the zone, e.g. make sure setTimeout is wrapped in a _zone.runOutsideAngular call when necessary.

I guess the same applies to all the calls in the wrapper to the Google API. Logic by the Google code should run outside of the zone.

angular2 & angular2-google-maps version 1.6.0 (but I guess it happens just the same with newer versions).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
stale[bot]commented, Dec 17, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

2reactions
BovineEnthusiastcommented, Jun 1, 2019

Hey, has there been any progress into this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing Strategy for APIs: The Ultimate Guide For A Higher ...
Integration tests can test the capability of both the software service/capability itself and the API combined. This can be done by simulating a ......
Read more >
Develop for Testability - OutSystems 11 Documentation
API tests validate the correctness of exposed APIs. These can be either APIs that are exposed from external systems and consumed inside the ......
Read more >
API Design for Testability - StickyMinds
Roy Osherove describes dependency injection methods for designing APIs so that they are easier to test. He explains how design patterns can help...
Read more >
API Testability and Modeling for Testability - Xceptionale
This material takes a look at what is API testability and what makes API testing hard. It then looks at what we can...
Read more >
Integration with testability API · Issue #815 - GitHub
Issue description I'm doing end-to-end testing of my app (that uses angular2-google-maps). I'm resorting to the testability API of 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