Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#479: Provide more verbose exception message when AJAX fails. #480

Merged

Conversation

marcoscano
Copy link
Contributor

Very rough, just as a proof-of-concept, but this seems to help a lot while troubleshooting where a given error is coming from.

@@ -98,7 +98,7 @@ public function beforeJavascriptStep($event)
}
$text = $event->getStep()->getText();
if (preg_match('/(follow|press|click|submit)/i', $text)) {
$this->iWaitForAjaxToFinish();
$this->iWaitForAjaxToFinish($event);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable doesn't appear to be defined anywhere...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public function beforeJavascriptStep($event)

It is passed to the method :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, oops.

@jhedstrom
Copy link
Owner

This makes sense to me. Just need to clean up the coding standards to get the build passing.

@jhedstrom jhedstrom merged commit 8eafb07 into jhedstrom:master Mar 22, 2018
@jhedstrom
Copy link
Owner

Great, thanks!

@jhedstrom jhedstrom added this to the 4.0 release milestone Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants