behat icon indicating copy to clipboard operation
behat copied to clipboard

No AJAX timeout has been defined error when press or click the button.

Open Krzysiaczek opened this issue 3 years ago • 4 comments

When I use in the test either I press "Submit" or I click the element with selector "form > button" I am getting the same error: No AJAX timeout has been defined. Please verify that "Drupal\MinkExtension" is configured in behat.yml (and not "Behat\MinkExtension"). (Exception)

This is not defined extension and I guess not used at all so not sure what can be done about that?

Krzysiaczek avatar Mar 31 '22 10:03 Krzysiaczek

I've found a solution by using I click on element which has onclick handler located at "form > button"

Krzysiaczek avatar Mar 31 '22 11:03 Krzysiaczek

The problem has come back, after pulling fresh dev version of docker image of docksal/behat.

Krzysiaczek avatar Mar 31 '22 16:03 Krzysiaczek

However it works with docksal/behat:latest

Krzysiaczek avatar Mar 31 '22 16:03 Krzysiaczek

Unfortunately it happens again. It seems like it depends on the response type. When element throws a validation error it works OK - I mean only this version I click on element which has onclick handler located at "form > button" but when validation is OK and it should take user to another page I've got that missing ajax_timeout error. Not sure if it has anything to do with the fact that I'm trying to test the Vue application?

Krzysiaczek avatar Mar 31 '22 19:03 Krzysiaczek