New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

marionette-helper

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marionette-helper - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

test/integration/fakeapp/index.html

34

index.js

@@ -182,2 +182,36 @@ var Marionette = require('marionette-client');

});
},
/**
* select specific option from target select element
* @param {Marionette.Element|String} el element or some css selector.
* @param {String} optionText text for the option
*/
tapSelectOption: function(el, optionText) {
var selectedOption = null;
if (!isElement(el)) {
el = this.client.findElement(el);
}
el.findElements('option').some(function(optionEl) {
if (optionEl.text() === optionText) {
selectedOption = optionEl;
return true;
}
return false;
});
selectedOption.scriptWith(function(selectedOptionEl) {
selectedOptionEl.selected = true;
});
el.scriptWith(function(selectEl) {
var evt = new Event('change', {
'view': window,
'bubbles': true,
'cancelable': true
});
selectEl.dispatchEvent(evt);
});
}

@@ -184,0 +218,0 @@ };

6

package.json
{
"name": "marionette-helper",
"version": "0.2.0",
"version": "0.2.1",
"author": {

@@ -13,2 +13,6 @@ "name": "Gareth Aye",

"dependencies": {
"marionette-apps": "~0.3.3"
},
"devDependencies": {

@@ -15,0 +19,0 @@ "marionette-host-environment": "0.3.3",

test/index_test.js

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc