anticoders / gagarin

Another testing framework for your meteor apps.
gagarin.meteor.com
MIT License
150 stars 21 forks source link

Document the usage of "timeout" helper #167

Open khaledkbadr opened 8 years ago

khaledkbadr commented 8 years ago

Hello I'm trying to test OAUTH Facebook app. App pops up and everything is good unless driver times out before I get to type my credentials. It seems the problem relies that the Meteor.loginWithFacebook asynchronous function exceeds timeout. How can I increase this timeout?

Error response status: 28, , ScriptTimeout - A script did not complete before its timeout expired. Selenium error: asynchronous script timeout: result was not received in 5 seconds (Session info: chrome=48.0.2564.116) (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 3.13.0-79-generic x86_64)

I run my tests using gagarin --settings=dev_settings.json -t 60000 -T 60000 -v

apendua commented 8 years ago

Try something like this:

client
  .timeout(10000)
  .promise(...); // your login promise goes here
apendua commented 8 years ago

@khaledkbadr Did it solve your problem?

khaledkbadr commented 8 years ago

Yeah, thanks. I'm very grateful for the tip!