Socket
Socket
Sign inDemoInstall

nemo-view

Package Overview
Dependencies
64
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5 to 0.1.6

.travis.yml

2

Gruntfile.js

@@ -14,3 +14,3 @@ /* global require,module */

ignoreLeaks: false,
grep: grunt.option('grep') || '@active@',
grep: grunt.option('grep') || 0,
ui: 'bdd',

@@ -17,0 +17,0 @@ reporter: 'spec'

@@ -20,3 +20,3 @@ /*───────────────────────────────────────────────────────────────────────────*\

"addView": function (config, nemo) {
//console.log("config", config);
var _view = (new NemoView());

@@ -23,0 +23,0 @@ _view.config = config;

{
"name": "nemo-view",
"version": "0.1.5",
"version": "0.1.6",
"description": "View Interface for nemo views (requires nemo-drivex and nemo-locatex plugins)",
"main": "index.js",
"registerAs": "view",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "grunt --grep @travis@"
},

@@ -9,0 +10,0 @@ "repository": {

@@ -5,2 +5,4 @@ ## nemo-view

[![Build Status](https://travis-ci.org/paypal/nemo-view.svg?branch=master)](https://travis-ci.org/paypal/nemo-view)
### Peer Dependencies

@@ -13,10 +15,10 @@

1. Add to package.json the appropriate versions of dependencies and nemo-view to package.json and install.
1. Add dependencies to package.json and install.
```javascript
...
"nemo": "git://github.paypal.com/NodeTestTools/nemo.git#v0.6-beta",
"nemo-view": "git://github.paypal.com/NodeTestTools/nemo-view.git#v0.3-beta",
"nemo": "^0.1.0",
"nemo-view": "^0.1.0",
"nemo-drivex": "^0.1.0",
"nemo-locatex": "^0.3.0-beta",
"nemo-locatex": "^0.1.0",
...

@@ -234,9 +236,21 @@ ```

##### [locatorName]OptionText
* arguments
* text: the text in the option you wish to select
* returns: Promise which resolves to true when option is selected
##### [locatorName]OptionValue
* arguments
* value: the value attribute of the option you wish to select
* returns: Promise which resolves to true when option is selected
Any method in the view object's prototype will also be available for use
Other than that, the nemo-view uses nemo-locatex internally, so if you change your locator files and set LOCALE, nemo-view will handle the rest!
### Using LOCALE specific locators
Please see these sections in the nemo-locatex README:
* https://github.paypal.com/NodeTestTools/nemo-locatex#changing-your-locator-files
* https://github.paypal.com/NodeTestTools/nemo-locatex#setting-locale
* https://github.com/paypal/nemo-locatex#changing-your-locator-files
* https://github.com/paypal/nemo-locatex#setting-locale
Other than that, the nemo-view uses nemo-locatex internally, so if you change your locator files and set LOCALE, nemo-view will handle the rest!

@@ -5,8 +5,3 @@ before(function(done) {

"targetBrowser": "chrome",
"autoBaseDir": process.cwd() + "/test",
"serverProps": {
"port": 4444
},
"targetServer": "localhost",
"seleniumJar": "/usr/local/bin/selenium-server-standalone.jar"
"autoBaseDir": process.cwd() + "/test"
});

@@ -13,0 +8,0 @@ done();

@@ -16,3 +16,3 @@ var should = require('chai').should(),

describe("nemo-view @jsonLocatorViewSuite@active@", function () {
describe("nemo-view @jsonLocatorViewSuite@travis@", function () {
nemoFactory({"context": nemo, "plugins": plugins, "setup": setup});

@@ -19,0 +19,0 @@ beforeEach(function (done) {

@@ -9,6 +9,7 @@ var should = require('chai').should(),

describe("nemo-view @listViewSuite@active@", function () {
describe("nemo-view @listViewSuite@travis@", function () {
nemoFactory({"context": nemo, "plugins": plugins, "setup": setup});
beforeEach(function(done) {
nemo.driver.get(nemo.props.targetBaseUrl).then(function() {
nemo.driver.get(nemo.props.targetBaseUrl);
nemo.driver.sleep(2000).then(function () {
done()

@@ -28,4 +29,4 @@ }, function(err) {

nemo.view.formElementList.inputGroup().then(function(elts) {
elts.forEach(function(elt) {
nemo.driver.sleep(300);
elt.text().sendKeys("abcd");

@@ -32,0 +33,0 @@ nemo.driver.sleep(300);

var should = require('chai').should(),
nemoFactory = require('nemo-mocha-factory'),
loginFlow = require('nemo-shared-objects/flow/login'),
loginFlow = require('nemo-shared-objects').loginFlow,
plugins = require('./plugins'),

@@ -16,3 +16,3 @@ nemo = {},

describe("nemo-view @moduleViewSuite@active@", function () {
describe("nemo-view @moduleViewSuite@", function () {
nemoFactory({"context": nemo, "plugins": plugins, "setup": setup});

@@ -19,0 +19,0 @@ beforeEach(function (done) {

@@ -12,3 +12,3 @@ var should = require('chai').should(),

describe("nemo-view @pathViewSuite@active@", function () {
describe("nemo-view @pathViewSuite@travis@", function () {
nemoFactory({"context": nemo, "plugins": plugins, "setup": setup});

@@ -19,3 +19,4 @@ beforeEach(function (done) {

nemo.driver.get(nemo.props.targetBaseUrl).then(function () {
nemo.driver.get(nemo.props.targetBaseUrl);
nemo.driver.sleep(2000).then(function () {
done()

@@ -34,2 +35,3 @@ }, function (err) {

it("should use the form view to enter values and write to outy div @useView@", function (done) {
nemo.driver.sleep(300);
nemo.view.form.fooText().sendKeys("foo");

@@ -36,0 +38,0 @@ nemo.driver.sleep(300);

@@ -10,3 +10,3 @@ var should = require('chai').should(),

describe("nemo-view @simpleViewSuite@active@", function() {
describe("nemo-view @simpleViewSuite@travis@", function() {
nemoFactory({

@@ -22,3 +22,4 @@ "context": nemo,

nemo.driver.get(nemo.props.targetBaseUrl).then(function() {
nemo.driver.get(nemo.props.targetBaseUrl);
nemo.driver.sleep(2000).then(function () {
done()

@@ -25,0 +26,0 @@ }, function(err) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc