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

eyes.it

Package Overview
Dependencies
Maintainers
1
Versions
291
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eyes.it

Easily integrate protractor with eyes when using jasmine2 as testing framework. All you have to do is use `eyes.it` in your tests instead of `it` and it will run the test with screenshots sent to eyes after each `browser.get()` and at the end of the test.

  • 1.0.26
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by11.11%
Maintainers
1
Weekly downloads
 
Created
Source

Why do I need this?

Easily integrate protractor with eyes when using jasmine2 as testing framework. All you have to do is use eyes.it in your tests instead of it and it will run the test with screenshots sent to eyes after each browser.get() and at the end of the test.

Installing

npm install --save-dev eyes.it

Usage

Add environment variable with your eyes api key (key here is only example, get your own!):

export EYES_API_KEY=6QGH9IA5nkK1wRt60I1EWybFMWTJ2R1kcwu07y41lYh0LNWu3r

In your protractor tests:

let eyes = require('eyes.it');

eyes.it('should run tests with eyes', () => {
    browser.get('/');
    $('input').sendKeys('123');
    $('button').click();
    expect($('span').text()).toBe('123');
});

In case you require more screenshots in addition to the default ones that happen after browser.get() and at the end of the test, you can always call eyes.checkWindow(testName); in your test on your own.

You can also use eyes.fit in case you need to use focused tests.

If you do not have EYES_API_KEY environment variable, eyes.it will behave just like regular it.

FAQs

Package last updated on 27 Mar 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