![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
gulp-protractor-qa
Advanced tools
Gulp Protractor QA warns you on the fly whether all element() selectors could be found or not within your AngularJS view files.
Keeping end-to-end tests up-to-date can be really painful. Gulp Protractor QA warns you on the fly whether all element() selectors could be found or not within your application view files.
TL;DR: a couple of new features and fixes have been added since this screencast publication.
npm install --save-dev gulp-protractor-qa
var gulp = require('gulp');
var protractorQA = require('gulp-protractor-qa');
Registering the task
gulp.task('protractor-qa', function() {
protractorQA.init({
runOnce: true, // optional
testSrc: 'test/e2e/**/*Spec.js',
viewSrc: [ 'index.html', 'partials/*.html' ]
});
});
Running it
gulp.task('default', ['protractor-qa']);
See final gulpfile.js example.
Type: Boolean
Default: false
Optional: Set to true
when you want to control yourself when to run task.
In other words, it won't watch files changes.
Type: String
or Array
Default: ""
Where the plugin should watch the changes in order to map all element()
indexes.
Type: String
or Array
Default: ""
Where your AngularJS view files are located. Protractor QA will watch the changes in those files to verify if all element()
selectors could be found.
Gulp-protractor-qa is currently watching the following element()
locators:
by.binding()
;by.model()
;by.repeater()
;by.css()
;by.id()
;by.className()
;by.name()
;Note: currently it can't find by.css()
selectors with :nth-child()
.
0.2.0 api completely rewritten, including:
runOnce
feature;ng:*
due to cheerio
limitation;by.css
old regex;by.id()
, by.className()
and by.name()
.0.1.19 improve by.css
regex;
0.1.18 bug fix: adding support for data-*
attributes;
0.1.14 showing "<number>
out of <total>
element selectors are been watched" in the log;
0.1.12 bug fix related to gaze
version;
0.1.10 testSrc
and viewSrc
now receive string
or array
value;
0.1.07
by.css('[attr-name="attr-value"]')
;0.1.05
element()
selectors: by.css('[attr-name="attr-value"]')
and by.binding()
;protractor.By
and by.
;0.1.0 Mapping just two element()
selectors: by.model()
and by.repeater()
.
FAQs
Gulp Protractor QA warns you on the fly whether all element() selectors could be found or not within your AngularJS view files.
The npm package gulp-protractor-qa receives a total of 20 weekly downloads. As such, gulp-protractor-qa popularity was classified as not popular.
We found that gulp-protractor-qa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.