testarmada-nightwatch-extra
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -37,4 +37,4 @@ // Assert whether a selector contains a given text | ||
if (expected === undefined | ||
|| actual.indexOf(expected) < 0 | ||
|| !(new RegExp(expected).exec(actual))) { | ||
|| (actual.indexOf(expected) < 0 | ||
&& !(new RegExp(expected).exec(actual)))) { | ||
this.fail(actual, expected, this.message, this.failureDetails); | ||
@@ -41,0 +41,0 @@ } else { |
@@ -10,2 +10,8 @@ var fs = require("fs"); | ||
/** | ||
* android emulator doesn't allow js injection with comments. so add comments | ||
* here if comments are needed for `executeSizzlejs` function | ||
* | ||
*/ | ||
executeSizzlejs: function (sel, injectedJsCommand, sizzleSource) { | ||
@@ -12,0 +18,0 @@ var result = { |
{ | ||
"name": "testarmada-nightwatch-extra", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "extra useful nightwatch command and assertion", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,4 +27,2 @@ var Test = require("../lib/base-test-class"); | ||
.setElValue("[name='q']", "hahaha") | ||
// .clearValue("[name='q']") | ||
// .setMaskedElValue("[name='q']", "hahaha") | ||
.clickEl(".lsb") | ||
@@ -31,0 +29,0 @@ .assert.elContainsText("#resultStats", "About"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90666
1720