New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@typeform/foreyes

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typeform/foreyes

Visually compare urls (or react components) across browsers

  • 1.10.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
3
Weekly downloads
 
Created
Source
(This README is a WIP subject to change.)

Foreyes

📺 Visually detects changes accross browsers in any of your projects!

Build Status

Foreyes allows you to visually compare pages using many different approaches:

  • Any given URL (See running against a URL)
  • Pages mounted with every component's visual combination (kitchen sink pages),
  • Your custom templates. There are also helpers to create these pages.

After creating the pages, they will be visually compared across browsers. Chrome acts as a master layout against Firefox and IE11.

Getting Started

Prerequisites

Foreyes uses node.js and yarn to execute the urls or components and compare the differences. Your project should work with these 3 technologies to work seamlessly.

At the moment, IE11 is run on browserstack. Be sure to add these ENV vars on your machine with your data.

BROWSERSTACK_USERNAME
BROWSERSTACK_KEY

Installing

Foreyes is a Typeform's private NPM package. So configure your NPM token in your project, then add the package:

echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
yarn add @typeform/foreyes
yarn foreyes setup

(Optional) Configuring in Travis

In package.json, add:

scripts: {
    "foreyes-start-server": "yarn foreyes run-server &",
    "foreyes-run-tests": "yarn foreyes test-all"
    //...

In .travis.yml, add:

addons:
  chrome: stable

before_install:
  - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
  - export MOZ_HEADLESS=1

before_script:
  - yarn foreyes-start-server

script:
  - yarn foreyes-run-tests

Execution

Running against a URL

Foreyes can visually compare URLs directly. Add URLs to the list in the foreyesConfig/fixturesUrls.json. Then use yarn foreyes test-urls

Screenshots will be saved under the specified folder in the setup. Keep in mind each execution will replace the old screenshots.

Next steps: Refactor so .storybook config folder doesn't need to be pasted into the root

Running against React components

If you're interested in visually compare specific mounted components, check out this cool guide!

Authors

Refer to one of the authors for help and issues.

  • Daniel Giralt Len - Coordinator and developer
  • Jordi Pons Llauradó - Developer
  • Toni Feliu - Developer
  • Pau Boix - Developer

Keywords

FAQs

Package last updated on 04 Oct 2018

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