assaf / zombie

Insanely fast, full-stack, headless browser testing using node.js
http://zombie.js.org/
MIT License
5.65k stars 518 forks source link

Issue when testing with AWS Incognito #1141

Open Octavic opened 7 years ago

Octavic commented 7 years ago

I receive the following error when trying to test a webapp built with amazon aws Cognito

{ NetworkingError: Cannot read property 'addEventListener' of undefined,
  ...
  message: 'Cannot read property \'addEventListener\' of undefined',
  code: 'NetworkingError'
}

I'm able to access the webpage and complete the auth process normally when running manually in a browser (Chrome). I suspect that it might have something to do with local storage since that's where Cognito stores session data and tokens, but I'm not 100% sure and debugging has been difficult.