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

ember-barista

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-barista

Auto-generate test scaffolding using JIRA

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config-frost-standard
Travis Coveralls NPM

ember-barista

Tool to make life easier.

In Jira, add a comment in the following format.

Acceptance Criteria:

  Elements:
    - Username:
        Type: Fillable
        Properties: Required, 1-100 chars, special chars
    - Submit Button:
        Type: Clickable
        Properties: Tertiary button style, resizes
    - Home Link:
        Type: Visitable
        Properties: Highlight on hover
    - Email:
        Type: fillable
        Properties: Required, 1-100 chars, reserved special chars (“@”, “-”, “_”, “.”)

  Scenarios:
    - Username Input:
        Setup:
          - Create Text Field
          - Assign ID
          - Set disabled
        Tests:
          - Fires input event
          - Focus and blur events:
            - Does this
            - Does that
            - Keeps Nesting:
                Setup:
                  - Make sure is nested
                Tests:
                  - Nested does this
                  - Nested does that
    - Password Field:
        Setup:
          - Create Text Field
        Tests:
          - Fires input event
          - Focus and blur events:
            - Does this
            - Does that
            - Keeps Nesting:
              - Nested does this
              - Nested does that

Will generate a test in the following format:

import chai from 'chai'
import sinon from 'sinon'

import {
  beforeEach,
  afterEach,
  it
} from 'mocha'

import {
  create,
  fillable,
  clickable,
  visitable
} from 'ember-cli-page-object'

const expect = chai.expect

const PageObject = create({
  'username': fillable('.username'),
  'submit-button': clickable('.submit-button'),
  'home-link': visitable('.home-link'),
  'email': fillable('.email')
})

describe('Acceptance: Test BDD Story', function () {
  beforeEach(function () {
    application = startApp()
  })

  afterEach(function () {
    destroyApp(application)
  })

  describe('Username Input', function () {
    beforeEach(function () {
      // TODO Create Text Field
      // TODO Assign ID
      // TODO Set disabled
    })
    it('Fires input event', function () {})
    describe('Focus and blur events', function () {
      it('Does this', function () {})
      it('Does that', function () {})
      describe('Keeps Nesting', function () {
        beforeEach(function () {
          //TODO Make sure is nested
        })
        it('Nested does this', function () {})
        it('Nested does that', function () {})
      })
      })
    })
  })
  describe('Password Field', function () {
    beforeEach(function () {
      // TODO Create Text Field
    })
    it('Fires input event', function () {})
    describe('Focus and blur events', function () {
      it('Does this', function () {})
      it('Does that', function () {})
      describe('Keeps Nesting', function () {
        it('Nested does this', function () {})
        it('Nested does that', function () {})
      })
    })
  })
})

Installation

  • npm install

Running

./index.js

TODO

  • Generate files in correct location (relative path to node_modules)
  • Automation

Keywords

FAQs

Package last updated on 25 Jul 2016

Did you know?

Socket

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.

Install

Related posts

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