Skip to content
Snippets Groups Projects
Commit efb29451 authored by Omar Mohamad - El Hassan Lopesino's avatar Omar Mohamad - El Hassan Lopesino
Browse files

Do not look for JS errors when the browser session hasn't started

parent ea09e330
Branches
Tags 1.0.3
No related merge requests found
......@@ -88,7 +88,7 @@ class BehatJavascriptContext extends DrupalSubContextBase {
* @AfterStep
*/
public function lookForJavascriptErrors(AfterStepScope $scope) {
if (!$this->lookForJavascriptErrors) {
if (!$this->lookForJavascriptErrors || !$this->getSession()->isStarted()) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment