Permalink
Browse files

BUG take screenshot also on JS errors

  • Loading branch information...
1 parent 3c952a4 commit 0a3103e0eadae77558de80b6206a5955ad5c9738 @michalochman committed Aug 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 features/bootstrap/SilverStripe/Test/Behaviour/BasicContext.php
@@ -83,6 +83,7 @@ public function readErrorHandlerAfterStep(StepEvent $event)
$jserrors = $page->find('xpath', '//body[@data-jserrors]');
if (null !== $jserrors) {
+ $this->takeScreenshot($event);
throw new \Exception($jserrors->getAttribute('data-jserrors'));
}
}

0 comments on commit 0a3103e

Please sign in to comment.