Closed 1ma closed 8 years ago
Same/similar problem with other drivers?
I see no problem in changing https://github.com/minkphp/MinkZombieDriver/blob/master/src/ZombieDriver.php#L825 line to the
return (bool)json_decode($this->server->evalJS($js));
as long as test passes. Would you please submit a PR?
Sure.
Maybe, but this doesn't sound too critical a test (in main Mink repo) needs to be added/updated to ensure that wait
method returns true
and false
specifically.
Yeah, this may be buggy in case the JS expression does not return a real boolean
The testsuite passes currently, because all expressions used in it are returning a real boolean
Closed via 39f6308923abf80d86114b2f158ac83dd77a89d4.
It returns the result of a
json_decode
operation, whereas Mink's DriverInterface specifies that this method should return a boolean.This prevents from using the following testing construct when using this driver: