question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with steps counter

See original GitHub issue

If test fails with timeout, first then section of next test will be skipped.

describe('Google searching', function() {
  before(function() {
    casper.start('http://www.google.com/')
  })

  it('Expect #qwerty element', function() {
    casper.waitForSelector('#qwerty')
  })

  it('Expect body element', function() {
    casper.then(function() {
      console.log('THEN 1')
    });
    casper.then(function() {
      console.log('THEN 2')
    })
    casper.then(function() {
      console.log('THEN 3')
    })
  })
})

Result in console:

  Google searching
    1) Expect #qwerty element
THEN 2
THEN 3
    ✓ Expect body element (61ms)


  1 passing (6s)
  1 failing

  1) Google searching Expect #qwerty element:
     "#qwerty" still did not exist 5000ms

Is it a bug? Or I’m doing something wrong? I think, it’s problem with steps counter, because if I remove line 51 in node_modules/mocha-casperjs/mocha-casperjs.js, all then sections are running.

https://github.com/nathanboktae/mocha-casperjs/blob/master/mocha-casperjs.js#L51

  Google searching
    1) Expect #qwerty element
THEN 1
THEN 2
THEN 3
    ✓ Expect body element (81ms)


  1 passing (16s)
  1 failing

  1) Google searching Expect #qwerty element:
     "#qwerty" still did not exist 5000ms

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
evgenijponomarevcommented, Mar 31, 2017

Yes. I’ll do it this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Most Common Pedometer Problems - Verywell Fit
Learn about 10 common pedometer and fitness monitor problems and how to fix ... Pedometers can malfunction and count too many or too...
Read more >
Android - My step counter is not working - what should I do?
Once you have updated the app, quit and restart it. · If this doesn't work, try changing the step data source. · If...
Read more >
Why is your smart band not counting steps? We can help
Not knowing why your fitness tracker is not counting your steps is a big headache. You keep moving but it may track fewer...
Read more >
13 Problems Only Steps Addicts Understand - Cosmopolitan
1. Trying to explain to someone who doesn't count steps what an achievement it is to hit your daily goal. · 2. When...
Read more >
Google Fit Not Counting Steps on Your Android Phone? 5 ...
1. Reset Activity Tracker Settings · Open the Google Fit app and tap the profile icon. · Tap on Settings (the gear icon)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found