mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Delay UI interactions after ajax to allow browser rendering
merge
This commit is contained in:
parent
8418bea0f8
commit
460ce55d22
@ -137,6 +137,7 @@ if ('undefined' !== typeof window.jQuery) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
JS;
|
JS;
|
||||||
|
$this->getSession()->wait(500); // give browser a chance to process and render response
|
||||||
$this->getSession()->executeScript($javascript);
|
$this->getSession()->executeScript($javascript);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,7 +270,6 @@ JS;
|
|||||||
|
|
||||||
$buttonElement = $page->find('named', array('link_or_button', "'$button'"));
|
$buttonElement = $page->find('named', array('link_or_button', "'$button'"));
|
||||||
assertNotNull($buttonElement, sprintf('%s button not found', $button));
|
assertNotNull($buttonElement, sprintf('%s button not found', $button));
|
||||||
|
|
||||||
$buttonElement->click();
|
$buttonElement->click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user