I'm new to protractor. How does async/await in this function works? Can anybody explain it to me? it('TC_01 - Verify Cockpit page title', async (done) => { headerPage.waitForTitleContain('PEAX', 30000); expect(await headerPage.getTitle()).toEqual('PE
I have a service called myHttp that returns a promise, and a controller that calls myHttp twice with different parameters. To test the controller, I'm attempting to mock myHttp with Jasmine spyOn like so: beforeEach(inject(function($controller, _$roo
In this Angular/Jasmine example I have a controller with a promise and a $timeout. The test fails because a variable set in the $timeout is undefined. Other variables not set inside the $timeout don't have this problem. Only this expect fails, the ot
I'm working with a system that has several external system dependencies. These external systems are only hooked into certain SDLC environments (local, dev, qa, and prod). Due to these restrictions, I have put environment checks in place on my some of
I know that calling $digest or $apply manually during a digest cycle will cause a "$digest already in progress" error but I have no idea why I am getting it here. This is a unit test for a service that wraps $http, the service is simple enough,