Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

iWaitForAjaxToFinish provide some ways to configure wait time for Ajax call #333

Open
MBouzeboudja opened this issue Jul 26, 2018 · 1 comment

Comments

@MBouzeboudja
Copy link

We do auto-test using behat on Drupal 8, some Ajax calls take a lot of time to finish (> 6s) like when we upload CSV file to create a content, it would be nice if we have the possibility to configure the wait time of the iWaitForAjax function in order to increase or decrease it when we need.
We can have this time wait configuration in behat.yml for example.

We suggest also to add "attach" to afterJavascriptStep because in drupal we have some attach witch generate Ajax calls.

```

$text = $event->getStep()->getText();
if (preg_match('/(follow|press|click|submit|attach)/i', $text)) {
$this->iWaitForAjaxToFinish();

    
@stof
Copy link
Member

stof commented Jul 26, 2018

there is no iWaitForAjax function in this repository

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants