mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
FIX: Use executeScript() because we discard the return value.
evaluateScript() injects 'return ' into the executed script, which often breaks multi-line code. executeScript() is better
This commit is contained in:
parent
b0af00bf9d
commit
5a7d25e530
@ -386,7 +386,8 @@ if(input.closest('.ss-uploadfield-item-info').length) {
|
||||
while(!input.parent().is('.ss-uploadfield-item-info')) input = input.unwrap();
|
||||
}
|
||||
JS;
|
||||
$this->getSession()->evaluateScript($js);
|
||||
|
||||
$this->getSession()->executeScript($js);
|
||||
$this->getSession()->wait(1000);
|
||||
|
||||
return new Step\Given(sprintf('I attach the file "%s" to "%s"', $path, $field));
|
||||
|
Loading…
Reference in New Issue
Block a user