Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
protractor-tools
Advanced tools
A typescript rewrite of sg-protractor-tools utility library
This library provides a reusable and generic set of helper functions for the Protractor test framework. It includes functions that simplify things like browser resizing, scrolling and memory usage tracking as part of a test suite. The project bundles an example application that showcases the functionality.
While using Protractor for testing our Angular-based applications, we have found that we can simplify many of the common tasks done as part of part of our test suite. The Protractor API is fairly low-level in some cases, and we have seen that we can cut down the amount of code for some common tasks by externalizing functionality into a reusable library.
npm install -D protractor-tools
Install the library as a development dependency using the node package manager of your choice.
Import the required util classes in your *.e2e-spec.ts
files.
import { ResizeUtil } from 'protractor-tools';
describe('Resizing demo App', () => {
it('should resize the browser window a little', () => {
// ...
resizeUtil.setWindowSize(1303, 876);
// ...
});
});
The following utility classes are currently available
You may refer to the source code of the util classes for usage details or the forked library documentation for more information about the reason for the utility classes.
The code in this project is licensed under MIT license.
FAQs
Collection of helper functions for protractor e2e test
We found that protractor-tools 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.