testarmada-magellan-nightwatch
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -38,2 +38,4 @@ // Base test class that should be used for all Magellan tests | ||
// Note: This is for Magellan versions earlier than 8 and will be ignored by | ||
// magellan versions 8 and above. | ||
process.send({ | ||
@@ -114,3 +116,3 @@ type: "worker-status", | ||
emitStartedTest(client); | ||
if (settings.isWorker === true) { | ||
@@ -117,0 +119,0 @@ this.handleExternalMessage = function (message) { |
@@ -7,2 +7,9 @@ var settings = require("./settings"); | ||
settings.sessionId = client.sessionId; | ||
// Send this info to a parent magellan process (if present) as soon as we have it | ||
// NOTE: this is only supported by magellans version 8 and higher. | ||
process.send({ | ||
type: "selenium-session-info", | ||
sessionId: client.sessionId | ||
}); | ||
} | ||
@@ -21,3 +28,3 @@ }); | ||
// 2. Replace the step with an alterate function that first quickly grabs | ||
// the selenium session id from the client object, and then calls the | ||
// the selenium session id from the client object, and then calls the | ||
// original test function. | ||
@@ -24,0 +31,0 @@ // |
111
package.json
{ | ||
"name": "testarmada-magellan-nightwatch", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Nightwatch.js adapter for Magellan", | ||
@@ -16,63 +16,47 @@ "main": "index.js", | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Dave Cadwallader", | ||
"url": "https://github.com/geekdave" | ||
}, | ||
{ | ||
"name": "Maciej Adwent", | ||
"url": "https://github.com/Maciek416" | ||
}, | ||
{ | ||
"name": "Yamei Wang", | ||
"url": "https://github.com/ywang0" | ||
}, | ||
{ | ||
"name": "Jory Graham", | ||
"url": "https://github.com/jory" | ||
}, | ||
{ | ||
"name": "Patrick Kettner", | ||
"url": "https://github.com/patrickkettner" | ||
}, | ||
{ | ||
"name": "Gwen Roberts", | ||
"url": "https://github.com/gwenr" | ||
}, | ||
{ | ||
"name": "Per Nilsson", | ||
"url": "https://github.com/per-nilsson" | ||
}, | ||
{ | ||
"name": "Sergey Chebykin", | ||
"url": "https://github.com/dr-nafanya" | ||
}, | ||
{ | ||
"name": "Aaron Pollack", | ||
"url": "https://github.com/lolpack" | ||
}, | ||
{ | ||
"name": "Lei Zhu", | ||
"url": "https://github.com/archlichking" | ||
}, | ||
{ | ||
"name": "Rob Gerstenberger", | ||
"url": "https://github.com/rgerstenberger" | ||
}, | ||
{ | ||
"name": "Abha Gupta", | ||
"url": "https://github.com/abhagupta" | ||
}, | ||
{ | ||
"name": "Mukund Goel", | ||
"url": "https://github.com/mukundgoel" | ||
}, | ||
{ | ||
"name": "Kimberly Lightholder", | ||
"url": "https://github.com/1un4r" | ||
} | ||
], | ||
"contributors": [{ | ||
"name": "Dave Cadwallader", | ||
"url": "https://github.com/geekdave" | ||
}, { | ||
"name": "Maciej Adwent", | ||
"url": "https://github.com/Maciek416" | ||
}, { | ||
"name": "Yamei Wang", | ||
"url": "https://github.com/ywang0" | ||
}, { | ||
"name": "Jory Graham", | ||
"url": "https://github.com/jory" | ||
}, { | ||
"name": "Patrick Kettner", | ||
"url": "https://github.com/patrickkettner" | ||
}, { | ||
"name": "Gwen Roberts", | ||
"url": "https://github.com/gwenr" | ||
}, { | ||
"name": "Per Nilsson", | ||
"url": "https://github.com/per-nilsson" | ||
}, { | ||
"name": "Sergey Chebykin", | ||
"url": "https://github.com/dr-nafanya" | ||
}, { | ||
"name": "Aaron Pollack", | ||
"url": "https://github.com/lolpack" | ||
}, { | ||
"name": "Lei Zhu", | ||
"url": "https://github.com/archlichking" | ||
}, { | ||
"name": "Rob Gerstenberger", | ||
"url": "https://github.com/rgerstenberger" | ||
}, { | ||
"name": "Abha Gupta", | ||
"url": "https://github.com/abhagupta" | ||
}, { | ||
"name": "Mukund Goel", | ||
"url": "https://github.com/mukundgoel" | ||
}, { | ||
"name": "Kimberly Lightholder", | ||
"url": "https://github.com/1un4r" | ||
}], | ||
"license": "MIT", | ||
"dependencies": { | ||
"chromedriver": "2.16.0", | ||
"cli-color": "0.3.2", | ||
@@ -82,7 +66,5 @@ "lodash": "^3.10.0", | ||
"jsonfile": "2.0.0", | ||
"phantomjs": "1.9.18", | ||
"q": "1.0.1", | ||
"request": "2.40.0", | ||
"sanitize-filename": "1.3.0", | ||
"selenium-server": "2.49.0", | ||
"yargs": "1.3.2" | ||
@@ -92,4 +74,7 @@ }, | ||
"nightwatch": "^0.8.9", | ||
"testarmada-magellan": "4.0.0" | ||
"testarmada-magellan": "4.0.0", | ||
"phantomjs": "1.9.18", | ||
"chromedriver": "2.16.0", | ||
"selenium-server": "2.49.0" | ||
} | ||
} |
@@ -55,2 +55,3 @@ # magellan-nightwatch | ||
<td>clickAutomationEl("mybutton")</td> | ||
<td>Needs "data-automation-id" attribute in the clickable HTML element's DOM for this command to work</td> | ||
</tr> | ||
@@ -162,25 +163,13 @@ <tr> | ||
Some Nightwatch commands and assertions are supported out of the box. | ||
All Nightwatch commands and assertions are supported out of the box. | ||
#### Supported Nightwatch Commands | ||
* `clearValue()` | ||
* `pause()` | ||
* `attributeEquals()` | ||
* `saveScreenshot()` | ||
* `setCookie()` | ||
* `url()` | ||
* `getText()` | ||
* `getValue()` | ||
* Please refer to [Nightwatch Commands API](http://nightwatchjs.org/api#commands) for a list of supported Nightwatch commands | ||
#### Supported Nightwatch Assertions | ||
* `cssClassPresent()` | ||
* `cssProperty()` | ||
* `elementNotPresent()` | ||
* `elementPresent()` | ||
* `urlContains()` | ||
* `visible()` | ||
* Please refer to [Nightwatch Assertions API](http://nightwatchjs.org/api#assertions) for a list of supported Nightwatch assertions | ||
(From node): | ||
#### Supported Node Assertions | ||
@@ -196,3 +185,3 @@ * `fail` | ||
* `doesNotThrow` | ||
* `ifErro` | ||
* `ifError` | ||
@@ -237,3 +226,3 @@ #### Custom Commands | ||
**Note: pay special attention to the version number for the selenium server above, currently at version `2.46.0`*** | ||
**Note: pay special attention to the version number for the selenium server above, currently at version `2.49.0`*** | ||
@@ -289,2 +278,2 @@ Set up `phantomjs` path: | ||
* Updated `selenium-standalone` to `2.49.0` | ||
* Updated `selenium-standalone` to `2.49.0` |
Sorry, the diff of this file is not supported yet
179932
8
1859
5
275
- Removedchromedriver@2.16.0
- Removedphantomjs@1.9.18
- Removedselenium-server@2.49.0
- Removedabbrev@1.1.1(transitive)
- Removedadm-zip@0.4.160.4.4(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbl@0.9.5(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcaseless@0.6.0(transitive)
- Removedchromedriver@2.16.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconfig-chain@1.1.13(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedfs-extra@0.23.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@1.3.8(transitive)
- Removedisarray@0.0.1(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedkew@0.4.00.5.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednopt@3.0.6(transitive)
- Removednpmconf@2.1.12.1.3(transitive)
- Removedoauth-sign@0.4.0(transitive)
- Removedonce@1.3.3(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedphantomjs@1.9.18(transitive)
- Removedprogress@1.1.8(transitive)
- Removedproto-list@1.2.4(transitive)
- Removedqs@1.2.2(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedrequest@2.42.0(transitive)
- Removedrequest-progress@0.3.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedselenium-server@2.49.0(transitive)
- Removedsemver@4.3.6(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedthrottleit@0.0.2(transitive)
- Removeduid-number@0.0.5(transitive)
- Removedwhich@1.0.9(transitive)
- Removedwrappy@1.0.2(transitive)