These are chat archives for mojotech/pioneer

10th
Oct 2014
Dominik Guzei
@DominikGuzei
Oct 10 2014 07:57 UTC
Hey there! Has anyone experienced characters being eaten up when calling the fill or sendKeys method on text inputs? The scaffold sample worked as expected, but with my own feature/scenario that fills out multiple fields etc. it screws up :-(
Ricardo Machado
@mAiNiNfEcTiOn
Oct 10 2014 07:58 UTC
@DominikGuzei at my end, no. And we’re doing CI with it.
Dominik Guzei
@DominikGuzei
Oct 10 2014 08:02 UTC
Ah, I found the problem – it happens when I have a keyUp listener bound to the input element
Listening to change events works as expected
Ricardo Machado
@mAiNiNfEcTiOn
Oct 10 2014 09:45 UTC
@samccone do you have any ‘estimation’ on when can we see an example of how to integrate it with Sauce Labs ? :)
Sam Saccone
@samccone
Oct 10 2014 13:21 UTC
ah yes I should do that today @mAiNiNfEcTiOn :)
heh client work has got the best of me these last few days
Ricardo Machado
@mAiNiNfEcTiOn
Oct 10 2014 13:33 UTC
sweet :) We’re going to start using Sauce Labs so that would be aaaawesome :)
Dominik Guzei
@DominikGuzei
Oct 10 2014 13:59 UTC
Is there a easy way to run pioneer from within an node environment and provide it with configuration?
I tried it with new Pioneer(lib) but it uses process.argv to parse any config vars etc.
Sam Saccone
@samccone
Oct 10 2014 14:01 UTC
yep
oh you mean programatically
right?
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:01 UTC
yeah
Sam Saccone
@samccone
Oct 10 2014 14:01 UTC
yeah
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:02 UTC
I tried to "fake" adding vars to process.argvbut doesnt seem to work
Sam Saccone
@samccone
Oct 10 2014 14:02 UTC
so
if you look here
pioneer is just a “class"
that you instantiate
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:02 UTC
I already use that as a base
my problem is that I want to run pioneer from within another test runner
so I want to give it the configuration on instantiation
Sam Saccone
@samccone
Oct 10 2014 14:03 UTC
sure
should be able to do that...
what is your error?
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:03 UTC
no configuration path specified.
my problem is that the Pioneer class directly uses args = minimist(process.argv.slice(2)); for retrieving the vars
Sam Saccone
@samccone
Oct 10 2014 14:05 UTC
yeah
so that is due to cucumber being a really weird :(
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:05 UTC
so I tried process.argv.concat ['--configPath', 'path/to/something']
Sam Saccone
@samccone
Oct 10 2014 14:05 UTC
sure
hmmm
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:06 UTC
but it doesnt show up inside of Pioneer :-D
seems like node is protecting this
Sam Saccone
@samccone
Oct 10 2014 14:06 UTC
weird...
it should get in there...
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:07 UTC
ok i will try it in a few differnt ways ;-)
Sam Saccone
@samccone
Oct 10 2014 14:07 UTC
well
now i am curious
because that “should” work
ohhhh
.concat
does not mutate
process.argv = process.argv.concat …..
:)
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:08 UTC
aaah, old school error :-D
Sam Saccone
@samccone
Oct 10 2014 14:08 UTC
hahaha
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:08 UTC
ok loading config works now
Ricardo Machado
@mAiNiNfEcTiOn
Oct 10 2014 14:08 UTC
;)
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:09 UTC
next error up: Error: EISDIR, read
Sam Saccone
@samccone
Oct 10 2014 14:09 UTC
heh, that is because it is trying to read the config now
and it is invalid
:)
Sam Saccone
@samccone
Oct 10 2014 14:09 UTC
this points to a bigger problem tho @DominikGuzei
like.. you want to use it without a config
so instead of trying to hack in a fix...
maybe you can change it in pioneer
and PR it in
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:10 UTC
ok sorry – i am getting lazy, i just have to fix that in my case ;-)
Sam Saccone
@samccone
Oct 10 2014 14:11 UTC
fair :)
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:11 UTC
thanks for the help! pioneer is really great
Sam Saccone
@samccone
Oct 10 2014 14:11 UTC
glad you are liking it!