Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
testarmada-nightwatch-extra
Advanced tools
Enhanced nightwatchjs commands and assertions for test automation for desktop web, mobile web, native app and hybrid app.
:visible
pseudo) before executing every nightwatch command or assertion (done by injecting sizzlejs).In nightwatch.json
add following content
"custom_assertions_path": [
"./node_modules/testarmada-nightwatch-extra/lib/assertions",
"./node_modules/testarmada-nightwatch-extra/lib/assertions/mobile"
],
"custom_commands_path": [
"./node_modules/testarmada-nightwatch-extra/lib/commands",
"./node_modules/testarmada-nightwatch-extra/lib/commands/mobile"
]
If you're using this repo together with testarmada-magellan, your base test can inherit from the base test by
var BaseTest = require("testarmada-nightwatch-extra/lib/base-test-class");
For full example, please checkout boilerplate-nightwatch
For desktop and mobile web test, please refer to this page.
For iOS app test, please refer to this page.
If you're migrating from magellan-nightwatch to nightwatch-extra, please follow the steps
./node_modules/testarmada-magellan-nightwatch
from your project.package.json
dependencies:{
"testarmada-magellan-nightwatch: "${VERSION}", // DELETE THIS LINE
"testarmada-nightwatch-extra: "^3.0.0" // ADD THIS LINE
}
npm install
again under your project root folder.nightwatch.json
file has the following changes"custom_commands_path":[
"./node_modules/testarmada-magellan-nightwatch/lib/commands" // DELETE THIS LINE
"./node_modules/testarmada-nightwatch-extra/lib/commands" // ADD THIS LINE
],
"custom_assertions_path":[
"./node_modules/testarmada-magellan-nightwatch/lib/assertions" // DELETE THIS LINE
"./node_modules/testarmada-nightwatch-extra/lib/assertions" // ADD THIS LINE
]
require("testarmada-magellan-nightwatch/lib/base-test-class"); // DELETE THIS LINE
require("testarmada-nightwatch-extra/lib/base-test-class"); // ADD THIS LINE
Nightwatch-Extra@4 integrates appium
, which means you can now use nightwatchjs to test in appium either locally or with a test environment provider, such as saucelabs, for mobile web or app test.
Make sure your nightwatch.json
file has the following changes
"custom_commands_path":[
"./node_modules/testarmada-nightwatch-extra/lib/commands",
"./node_modules/testarmada-nightwatch-extra/lib/commands/mobile"
],
"custom_assertions_path":[
"./node_modules/testarmada-nightwatch-extra/lib/assertions",
"./node_modules/testarmada-nightwatch-extra/lib/assertions/mobile"
]
We've added a callback in before
. If you have a customized base test, please make sure you have the callback called in your customized baseTest.before
.
Please refer to Here as example.
after
needs to be called at the very first step in your customized baseTest.after
if you have one.
Please refer to Here as example.
FAQs
extra useful nightwatch command and assertion
The npm package testarmada-nightwatch-extra receives a total of 97 weekly downloads. As such, testarmada-nightwatch-extra popularity was classified as not popular.
We found that testarmada-nightwatch-extra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.