This repository was archived by the owner on Jan 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +43
-11
lines changed
src/Behat/Mink/Driver/NodeJS/Server Expand file tree Collapse file tree 3 files changed +43
-11
lines changed Original file line number Diff line number Diff line change
1
+ 1.2.0 / 2014-09-26
2
+ ==================
3
+
4
+ BC break:
5
+
6
+ * Rewrote the driver based on Zombie 2.0 rather than the old 1.x versions
7
+ * Changed the behavior of ` getValue ` for checkboxes according to the BC break in Mink 1.6
8
+
9
+ New features:
10
+
11
+ * Added the support of select elements in ` setValue `
12
+ * Implemented ` getOuterHtml `
13
+ * Added support for request headers
14
+ * Implemented ` submitForm `
15
+ * Implemented ` isSelected `
16
+
17
+ Bug fixes:
18
+
19
+ * Fixed the selection of options for multiple selects to ensure the change event is triggered only once
20
+ * Fixed the selection of options for radio groups
21
+ * Fixed ` getValue ` for radio groups
22
+ * Fixed the retrieval of response headers
23
+ * Fixed a leak of outdated references in the node server when changing page
24
+ * Fixed the resetting of the driver to reset everything
25
+ * Fixed the code to throw exceptions for invalid usages of the driver
26
+ * Fixed handling of errors to throw exceptions in the driver rather than crashing the node server
27
+ * Fixed ` evaluateScript ` and ` executeScript ` to support all syntaxes required by the Mink API
28
+ * Fixed ` getContent ` to return the source of the page without decoding entities
29
+ * Fixed the removal of cookies
30
+ * Fixed the basic auth implementation
31
+
32
+ Testing:
33
+
34
+ * Updated the testsuite to use the new Mink 1.6 driver testsuite
35
+ * Added testing on HHVM
Original file line number Diff line number Diff line change @@ -20,31 +20,28 @@ You need a working installation of [NodeJS](http://nodejs.org/) and
20
20
npm install -g zombie
21
21
```
22
22
23
- There are some compatibility issues with older versions of zombie.js.
24
- Some are more or less PHP specific and kinda hard to resolve. If you
25
- want to be 100% on the safe side, please use __ version 2.0.0-alpha1 or
26
- higher__ .
23
+ The driver requires zombie.js __ version 2.0.0 or higher__ .
27
24
28
25
Use [ Composer] ( https://getcomposer.org/ ) to install all required PHP dependencies:
29
26
30
- ``` json
27
+ ``` json
31
28
{
32
29
"require" : {
33
- "behat/mink" : " ~1.5 " ,
34
- "behat/mink-zombie-driver" : " ~1.1 "
30
+ "behat/mink" : " ~1.6 " ,
31
+ "behat/mink-zombie-driver" : " ~1.2 "
35
32
}
36
33
}
37
34
```
38
35
39
- ``` bash
36
+ ``` bash
40
37
$> curl -sS https://getcomposer.org/installer | php
41
38
$> php composer.phar install
42
39
```
43
40
44
41
Usage Example
45
42
-------------
46
43
47
- ``` php
44
+ ``` php
48
45
<?php
49
46
50
47
use Behat\Mink\Mink,
Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ protected function getServerScript()
159
159
return version_compare(require('%modules_path%zombie/package').version, v2, op);
160
160
};
161
161
162
- if (false == zombieVersionCompare('2.0.0alpha1 ', '>=')) {
163
- throw new Error("Your zombie.js version is not compatible with this driver. Please use a version >= 2.0.0alpha1 ");
162
+ if (false == zombieVersionCompare('2.0.0 ', '>=')) {
163
+ throw new Error("Your zombie.js version is not compatible with this driver. Please use a version >= 2.0.0 ");
164
164
}
165
165
166
166
net.createServer(function (stream) {
You can’t perform that action at this time.
0 commit comments