Wednesday, December 30, 2015

E2E Test - Protractor - Wait for google map markers to present

The problem is that in my e2e-test I expect markers to present on map too early before google maps api actually rendering them.

This is, or should be, an easy one, nevertheless it pained my ass because I'm a stinky newbie to Protractor.

Sunday, December 27, 2015

Unit test - Jasmine - Spied function was actually called but test result says it's never called

Today I spent entire morning to figure out WTF is going on in my unit-test.

Long story short, I spied on a function, I saw the debug log coming from the function, which means it definitely has been called, but the test result kept saying that it was never called.