Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

generator-pageboy

mranosa3MIT0.0.2

protractor + jasmine + yeoman + pageobjects

e2e, protractor, jasmine, page, objects, pageobjects, testing, test, end, user, tests, pageboy, generator-pageboy, yeoman-generator

readme

PageBoy Generator

Yeoman generator for creating end to end tests, using Protractor and Jasmine.

Prerequisites

Download and Install Node and Yeoman

Usage

  • Install Generator: npm install -g generator-pageboy
  • Create and Go to Project Directory: mkdir my-new-e2e-project && cd $_
  • Run Generator: yo pageboy
  • Start Sample App: npm start
  • Run Test: npm test

Generators

Available generators:

App

Sets up a new Protractor + Jasmine e2e app, generating all the boilerplate you need to get started.

Example:

yo pageboy

Route

Generates a new route.

Example:

yo pageboy:route myRoute
[?] What is the url of your route? www/app/myRoute
[?] What is the spec name? mySpec

Produces:

www/app/myRoute/myRoute.po.js
www/app/myRoute/myRoute.mySpec.spec.js

Spec

Generates a jasmine spec.

Example:

yo pageboy:spec mySpec
[?] Where would you like to create this spec? www/app

Produces:

www/app/app.mySpec.spec.js

PageObject

Generates a page object.

Example:

yo pageboy:po myPo
[?] Where would you like to create this pageobject? www/app

Produces:

www/app/myPo.po.js

License

MIT license

TODO

  • <input checked="" disabled="" type="checkbox"> Initial Artifacts
  • <input checked="" disabled="" type="checkbox"> Initial README
  • <input checked="" disabled="" type="checkbox"> App Generator
  • <input checked="" disabled="" type="checkbox"> Route Subgenerator
  • <input checked="" disabled="" type="checkbox"> PO Subgenerator
  • <input checked="" disabled="" type="checkbox"> Spec Subgenerator
  • <input checked="" disabled="" type="checkbox"> Publish to npm