protractor test times out with D3.js and DC.js graph library

Viewed 236

Recently my application has been upgraded to use JavaScript D3 graph library (D3.js and DC.js), and since then Protractor test started timing out with this error :

- Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
node_modules/jasmine-spec-reporter/built/configuration-parser.js:27

node_modules/jasmine-spec-reporter/built/configuration-parser.js:27
      internal/timers.js:554:17
node_modules/jasmine-spec-reporter/built/configuration-parser.js:27
      jasmine-spec-reporter: unable to open 'internal/timers.js'
node_modules/jasmine-spec-reporter/built/configuration-parser.js:27
      Error: ENOENT: no such file or directory, open 'internal/timers.js'
node_modules/jasmine-spec-reporter/built/configuration-parser.js:27

node_modules/jasmine-spec-reporter/built/configuration-parser.js:27
      internal/timers.js:497:7
node_modules/jasmine-spec-reporter/built/configuration-parser.js:27
      jasmine-spec-reporter: unable to open 'internal/timers.js'
node_modules/jasmine-spec-reporter/built/configuration-parser.js:27
      Error: ENOENT: no such file or directory, open 'internal/timers.js'
 

I tried many things like increasing the timeouts, adding sleeps or expected conditions to wait for elements etc. but every time my test just hangs on these charts and then timeouts.

If I run same test on older version of the Application test works perfectly fine. I also verified that there are no Identifier changes, but not sure what is causing test to hang.

Any help is much appreciated.

0 Answers
Related