testarmada-nightwatch-extra
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -40,6 +40,3 @@ "use strict"; | ||
method: "POST", | ||
data: { | ||
appPackage: this.appPackage, | ||
appActivity: this.appActivity | ||
} | ||
data: this.app | ||
}; | ||
@@ -80,2 +77,3 @@ | ||
StartActivity.prototype.command = function (app, cb) { | ||
this.app = app; | ||
this.appPackage = app.appPackage; | ||
@@ -82,0 +80,0 @@ this.appActivity = app.appActivity; |
{ | ||
"name": "testarmada-nightwatch-extra", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "extra useful nightwatch command and assertion", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -121,3 +121,18 @@ # Nightwatch-Extra | ||
2. Error dictionary | ||
Get methods return an object {actual:value} instead of just the value itself. | ||
For example, a previous call: | ||
``` | ||
client.getElValue(".user-profile", function(profile){ | ||
const myActalProfileValue = profile; | ||
}); | ||
``` | ||
Would now be: | ||
``` | ||
client.getElValue(".user-profile", function(profile){ | ||
const myActalProfileValue = profile.actual; | ||
}); | ||
``` | ||
### What to update in my repo | ||
@@ -221,4 +236,2 @@ | ||
## Error Dictionary | ||
@@ -225,0 +238,0 @@ Starting with version 4.3.1, we allow error messages from Nightwatch Extra API calls to be mapped to a dictionary file to provide the user with a better explanation for some of the errors that are encounted. Some of the standard messages now include codes (listed below) to be mapped, but you can also map other parts of the error message or even error messages from Saucelabs or Selenium. |
@@ -26,6 +26,3 @@ import util from "util"; | ||
method: "POST", | ||
data: { | ||
appPackage: this.appPackage, | ||
appActivity: this.appActivity | ||
} | ||
data: this.app | ||
}; | ||
@@ -67,2 +64,3 @@ | ||
StartActivity.prototype.command = function (app, cb) { | ||
this.app = app; | ||
this.appPackage = app.appPackage; | ||
@@ -69,0 +67,0 @@ this.appActivity = app.appActivity; |
Sorry, the diff of this file is not supported yet
590130
267
7025