These are chat archives for mojotech/pioneer

10th
Oct 2014
Dominik Guzei
@DominikGuzei
Oct 10 2014 07:57
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
@DominikGuzei at my end, no. And we’re doing CI with it.
Dominik Guzei
@DominikGuzei
Oct 10 2014 08:02
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
@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
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
sweet :) We’re going to start using Sauce Labs so that would be aaaawesome :)
Dominik Guzei
@DominikGuzei
Oct 10 2014 13:59
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
yep
oh you mean programatically
right?
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:01
yeah
Sam Saccone
@samccone
Oct 10 2014 14:01
yeah
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:02
I tried to "fake" adding vars to process.argvbut doesnt seem to work
Sam Saccone
@samccone
Oct 10 2014 14:02
so
if you look here
pioneer is just a “class"
that you instantiate
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:02
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
sure
should be able to do that...
what is your error?
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:03
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
yeah
so that is due to cucumber being a really weird :(
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:05
so I tried process.argv.concat ['--configPath', 'path/to/something']
Sam Saccone
@samccone
Oct 10 2014 14:05
sure
hmmm
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:06
but it doesnt show up inside of Pioneer :-D
seems like node is protecting this
Sam Saccone
@samccone
Oct 10 2014 14:06
weird...
it should get in there...
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:07
ok i will try it in a few differnt ways ;-)
Sam Saccone
@samccone
Oct 10 2014 14:07
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
aaah, old school error :-D
Sam Saccone
@samccone
Oct 10 2014 14:08
hahaha
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:08
ok loading config works now
Ricardo Machado
@mAiNiNfEcTiOn
Oct 10 2014 14:08
;)
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:09
next error up: Error: EISDIR, read
Sam Saccone
@samccone
Oct 10 2014 14:09
heh, that is because it is trying to read the config now
and it is invalid
:)
Sam Saccone
@samccone
Oct 10 2014 14:09
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
ok sorry – i am getting lazy, i just have to fix that in my case ;-)
Sam Saccone
@samccone
Oct 10 2014 14:11
fair :)
Dominik Guzei
@DominikGuzei
Oct 10 2014 14:11
thanks for the help! pioneer is really great
Sam Saccone
@samccone
Oct 10 2014 14:11
glad you are liking it!