These are chat archives for rosshinkley/nightmare

27th
Apr 2016
Ross Hinkley
@rosshinkley
Apr 27 2016 04:33
ungh. tests are back to being somewhat flaky
i'm going to take another pass at 502 tomorrow... should give me ample opportunity to play with xvfb and see if something else screwy is going on
Rob Brackett
@Mr0grog
Apr 27 2016 04:36
:thumbsup:
Ross Hinkley
@rosshinkley
Apr 27 2016 04:40
i suppose it's that i'm doing stuff tired and legitimately broke something :|
it's also, rather
Rob Brackett
@Mr0grog
Apr 27 2016 04:46
heh
working tired helps no one
Ross Hinkley
@rosshinkley
Apr 27 2016 05:25
indeed
which is why, now that i think i have my understanding of defineProperty fixed
(thank you, by the way)
Rob Brackett
@Mr0grog
Apr 27 2016 05:26
no worries
I think half my over-done note about it was because deleting then re-creating the property looks super awkward to me
rosshinkley @rosshinkley nods
Ross Hinkley
@rosshinkley
Apr 27 2016 05:27
intent was to create a cached property without having a temporary variable like __engineVersions or something
Rob Brackett
@Mr0grog
Apr 27 2016 05:27
as opposed to just Object.defineProperty(this, ‘engineVersions’ {value: [the value]})
Ross Hinkley
@rosshinkley
Apr 27 2016 05:28
that would execute execsync every time, though
and i wanted to avoid that
Rob Brackett
@Mr0grog
Apr 27 2016 05:28
no, if you replaced it with a descriptor that has value instead
it’s the same operation, just one step
Ross Hinkley
@rosshinkley
Apr 27 2016 05:29
ohhhhh i see what you're saying
i'm sorry
yep
Rob Brackett
@Mr0grog
Apr 27 2016 05:29
ha
no worries
Ross Hinkley
@rosshinkley
Apr 27 2016 05:29
at any rate, i don't know that pr is going to survive
Rob Brackett
@Mr0grog
Apr 27 2016 05:29
¯\_(ツ)_/¯
Ross Hinkley
@rosshinkley
Apr 27 2016 05:30
i say that because it causes... undesirable behavior
like starting an electron process and then never killing it
Rob Brackett
@Mr0grog
Apr 27 2016 05:30
You get more points on the little chart on your profile if you make more PRs
so, you know, PR+++++
Ross Hinkley
@rosshinkley
Apr 27 2016 05:30
har
not terribly important to me
Rob Brackett
@Mr0grog
Apr 27 2016 05:31
totally the most important thing
Ross Hinkley
@rosshinkley
Apr 27 2016 05:31
hahahahaha
it was worth the trip to learn something and explore the option
what is the github-to-internet-point exchange rate? :P
i'll probably resurrect 600 with the naming improvements
and knock off 604
but... i can't be trusted to do that right now :P
Rob Brackett
@Mr0grog
Apr 27 2016 05:34
How come nobody has created HubCoin, a virtual currency based on open-source commits to projects on GitHub?
rosshinkley @rosshinkley spits
Ross Hinkley
@rosshinkley
Apr 27 2016 05:34
hahahah
a fantastic question
Rob Brackett
@Mr0grog
Apr 27 2016 05:35
Realize your value in the open source community
with HubCoins
ok, clearly I need to take a break now, too
Ross Hinkley
@rosshinkley
Apr 27 2016 05:35
hey, i got a chuckle out of that
and ...yeah.
anyway, on good morrow sir
Rob Brackett
@Mr0grog
Apr 27 2016 05:36
:wave:
Mingsterism
@mingsterism
Apr 27 2016 08:39
Hi. Can someone help me. I'm using the yahoo.js example on github. I loaded it in electron but it seems to be clicking the search button first, before inputing in the test. Also, right after it inputs the eletron screen terminates.
appreciate some help. thanks
Mingsterism
@mingsterism
Apr 27 2016 08:45
also I'm getting unexpected identifier on the var link = yield nightmare
This message was deleted
this is my code
var Nightmare = require('nightmare');
var nightmare = Nightmare({ show: true })

var nightmare = Nightmare()
    var link = yield nightmare
      .goto('http://yahoo.com')
      .type('input[title="Search"]', 'github nightmare')
      .click('#UHSearchWeb')
      .wait('#main')
      .evaluate(function () {
    return document.querySelector('#main .searchCenterMiddle li a').href
  })
  .end()
  .then(function (result) {
    console.log(result)
  })
Ross Hinkley
@rosshinkley
Apr 27 2016 17:39
the readme example rrreally ought to have a catch in it. Yahoo has zapped us before deploying differing identifiers for a/b testing or what have you