Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG take screenshot also on JS errors

  • Loading branch information...
commit 0a3103e0eadae77558de80b6206a5955ad5c9738 1 parent 3c952a4
@michalochman authored
View
1  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'));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.