Socket
Socket
Sign inDemoInstall

gulp-protractor-qa

Package Overview
Dependencies
143
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-protractor-qa

A gulp plugin to help avoiding broken Protractor tests due to not found element() selectos.


Version published
Maintainers
1
Created

Readme

Source

gulp-protractor-qa

A gulp plugin to help you avoiding broken Protractor tests due to not found element() selectors.

Video screen demo of gulp-protractor-qa in action!

This is a beta version. From now, it's just mapping the following element() selectors: by.model(), by.binding(), by.css('[attr-name="attr-value"]') and by.repeater(). This project is for the community, so please: test it, open issues, fork it and if you like, give it a start! :) Help me make gulp-protractor-qa an awesome tool!

Install

npm install --save-dev gulp-protractor-qa

Example

var gulp = require('gulp');
var protractorQA = require('gulp-protractor-qa');

Registering the task

gulp.task('protractor-qa', function() {
    protractorQA.init({
        testSrc : 'test/e2e/**/*Spec.js',
        viewSrc : 'partials/*.html'
    });
});

Running it

gulp.task('default', ['protractor-qa']);

API

protractorQA(options)

options
testSrc

Type: String
Default: ""

Where the plugin should watch the changes in order to map all the element() index.

viewSrc

Type: String
Default: ""

Where your AngularJS view files are located. Protractor QA will watch the changes in those files to verify if all the element() selectors can be find.

Changelog

0.1.07

  • Improved the error log showing in which file each wrong selector came from;
  • Improved the regex that find selectors by: by.css('[attr-name="attr-value"]');

0.1.05

  • Mapping more element() selectors: by.css('[attr-name="attr-value"]') and by.binding();
  • Improve regex rules to support both: protractor.By and by.;
  • Other code improvements;

0.1.0

  • Mapping just two element() selectors: by.model() and by.repeater();

License

MIT © Ramon Victor

Keywords

FAQs

Last updated on 07 Apr 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc