Closed aik099 closed 10 years ago
From the error itself looks like something wasn't found on a page and we try to lowercase it's tagName.
I've restarted the build to use Zombie 2.0.1 to demonstrate that all errors but this one were fixed: https://travis-ci.org/Behat/MinkZombieDriver/jobs/33988060
I've figured out why it's crashing and it's funny. The line in question in the driver is var type = node.getAttribute('type').toLowerCase();
(see https://github.com/Behat/MinkZombieDriver/blob/master/src/Behat/Mink/Driver/ZombieDriver.php#L420) which lowercases type
attribute value. Problem comes in when node doesn't have the type
attribute and Zombie returns null
and in JavaScript NULL doesn't have any methods.
Test fixture code is: <input value="&"/>
(see https://github.com/Behat/Mink/blob/master/driver-testsuite/web-fixtures/html_decoding.html#L11).
@stof what way we should go:
type
attribute to fixture file if it's required for all input
HTML tagstype
attribute to be considered as having text
value in itWe should be using node.type
to get the type of an input instead, which already handle the fallback to text
I've tried to run tests against latest Zombie 2.0.1 and I've got only 1 failed test: