Problem with steps counter
See original GitHub issueIf 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:
 - Created 6 years ago
 - Comments:9 (4 by maintainers)
 
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://github.com/nathanboktae/mocha-casperjs/pull/108
Yes. I’ll do it this weekend.