angular-http-auth icon indicating copy to clipboard operation
angular-http-auth copied to clipboard

E2E testing with Protractor

Open tamlyn opened this issue 10 years ago • 2 comments

I'm trying to write some end-to-end tests for my application which uses this module. My problem is that Protractor waits for all $http requests to finish before running the tests. Since the request is intercepted, Protractor just times out:

Timed out waiting for Protractor to synchronize with the page after 11 seconds.

There's a related question on SO but no answers.

Anyone have a strategy for handling this situation?

tamlyn avatar May 28 '15 10:05 tamlyn

I'm having this same issue. I'm wondering if there's a way to just tell protractor to move on....

dehru avatar Jul 15 '15 21:07 dehru

I'm able to use this module, write a protractor test to verify login, using this.

beforeEach(function() {
   browser.ignoreSynchronization = true;
});

afterEach(function() {
   browser.ignoreSynchronization = false;
});

dehru avatar Jul 16 '15 16:07 dehru