Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-formulaic

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-formulaic - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

addon/click-on.js

10

blueprints/ember-formulaic/index.js

@@ -11,8 +11,10 @@ 'use strict';

afterInstall: function() {
this.insertIntoFile('tests/.jshintrc', ' "clickOn",' , {
var predefs = [
' "clickOn",',
' "fillForm",',
].join('\n');
this.insertIntoFile('tests/.jshintrc', predefs, {
after: '"predef": [\n'
});
this.insertIntoFile('tests/.jshintrc', ' "fillForm",' , {
after: '"predef": [\n'
});

@@ -19,0 +21,0 @@ return this.addAddonToProject('ember-i18n', '~> 4.1.0');

master
------
0.0.3
-----
* Restructure files to enable `import './ember-formulaic/test-helpers';`
* Change behvaior of `fillForm` to only work on
`<label for="text">Text</label><input id="text">`, in addition to
`<label>Text <input></label>`
0.0.2

@@ -5,0 +13,0 @@ -----

2

package.json
{
"name": "ember-formulaic",
"version": "0.0.2",
"version": "0.0.3",
"description": "Simplified form filling",

@@ -5,0 +5,0 @@ "directories": {

@@ -12,2 +12,9 @@ # Ember-Formulaic

First, import the test helpers:
```js
// tests/test-helper.js
import './ember-formulaic/test-helpers';
```
Assume the page has the following template:

@@ -67,15 +74,15 @@

test("fill in form", function() {
visit("/login")
test('fill in form', function() {
visit('/login')
fillForm({
"login.email": "ralph@thoughtbot.com",
"login.password": "secret",
"login.remember-me": true,
"login.role": "user",
'login.email': 'ralph@thoughtbot.com',
'login.password': 'secret',
'login.remember-me': true,
'login.role': 'user',
});
clickOn("form.submit");
clickOn('form.submit');
andThen(function() {
equal(currentPath(), "loggedInPath");
equal(currentPath(), 'loggedInPath');
});

@@ -82,0 +89,0 @@ });

export default {
'form': {
'button': 'Sibling Button',
'checkbox': 'Sibling Checkbox',
'multi-select': 'Sibling Multi-Select',
'select': 'Sibling Select',
'submit': 'Sibling Submit',
'text': 'Sibling Text',
'textarea': 'Sibling Textarea',
'button': 'For ID Button',
'checkbox': 'For ID Checkbox',
'multi-select': 'For ID Multi-Select',
'select': 'For ID Select',
'submit': 'For ID Submit',
'text': 'For ID Text',
'textarea': 'For ID Textarea',
},

@@ -11,0 +11,0 @@ 'nested': {

import Ember from 'ember';
import Application from '../../app';
import config from '../../config/environment';
import './test-helpers';
import './ember-formulaic/test-helpers';

@@ -6,0 +6,0 @@ function setupI18n(application) {

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