These are chat archives for mojotech/pioneer

2nd
Oct 2014
Jarid Margolin
@jaridmargolin
Oct 02 2014 17:57
@samccone - example of using BeforeAll / Before?
Nevermind... I believe I have it working correctly now.
Sam Saccone
@samccone
Oct 02 2014 18:11
woo
ok :)
skilesare
@skilesare
Oct 02 2014 19:22
How are cookies handled between scenarios? I have a scenario where I create a user and log it in, the next scenario is supposed to load the page again and I'd expect it to pass on the cookies picked up in the last scenario, but it doesn't seem to be. Any suggestions on how to handle this? Keep it allin the same scenario maybe?
Sam Saccone
@samccone
Oct 02 2014 19:22
yep
in your config file
preventReload: true
otherwise the browser actually kicks itself between each senario
skilesare
@skilesare
Oct 02 2014 19:24
works perfectly thanks.
Sam Saccone
@samccone
Oct 02 2014 19:33
bam :boom:
Jarid Margolin
@jaridmargolin
Oct 02 2014 19:50
@samccone - turns out I am still having some difficulty and the stack trace is not much help
Sam Saccone
@samccone
Oct 02 2014 19:51
ok
Jarid Margolin
@jaridmargolin
Oct 02 2014 19:51
/usr/local/lib/node_modules/pioneer/node_modules/selenium-webdriver/lib/webdriver/promise.js:1643
      throw error;
            ^
Error: connect ECONNREFUSED
    at errnoException (net.js:901:11)
    at Object.afterConnect [as oncomplete] (net.js:892:19)
==== async task ====
    at /usr/local/lib/node_modules/pioneer/lib/support/index.js:24:23
    at /usr/local/lib/node_modules/pioneer/node_modules/selenium-webdriver/lib/webdriver/promise.js:2055:12
    at webdriver.promise.ControlFlow.runInNewFrame_ (/usr/local/lib/node_modules/pioneer/node_modules/selenium-webdriver/lib/webdriver/promise.js:1539:20)
    at webdriver.promise.ControlFlow.runEventLoop_ (/usr/local/lib/node_modules/pioneer/node_modules/selenium-webdriver/lib/webdriver/promise.js:1404:8)
    at wrapper [as _onTimeout] (timers.js:252:14)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
==== async task ====
    at Object.webdriver.promise.createFlow (/usr/local/lib/node_modules/pioneer/node_modules/selenium-webdriver/lib/webdriver/promise.js:2054:15)
    at Object._inFlow (/usr/local/lib/node_modules/pioneer/lib/support/index.js:22:16)
Sam Saccone
@samccone
Oct 02 2014 19:51
oh thats a real nice one
:|
does that happen every time?
Jarid Margolin
@jaridmargolin
Oct 02 2014 19:52
Happens when I return a promise in Before
makes me think I am not using it correctly...
Sam Saccone
@samccone
Oct 02 2014 19:52
esh
can you post it?
Jarid Margolin
@jaridmargolin
Oct 02 2014 19:55
hmmm I actually just returned a blank resolved promise and it works... Error must be in my implementation
Bummer that the stack trace isn't any help
Sam Saccone
@samccone
Oct 02 2014 20:00
well
in the before hook
it is like bombing out in a weird spot i think
which is why the stack stinks :(
Jarid Margolin
@jaridmargolin
Oct 02 2014 20:08
Every time I go to investigate an issue I remember that I don't know coffeescript
Sam Saccone
@samccone
Oct 02 2014 20:09
:(