0.3.6 • Published 2 years ago

@proof-ui/applitools-plugin v0.3.6

Weekly downloads
90
License
MIT
Repository
-
Last release
2 years ago

@proof-ui/applitools-plugin

Uses applitools Visual Grid to take a snapshot of your story and run a visual regression check. It can be configured to run on may different screen-size and browser combinations. Make sure the APPLITOOLS_ID environment variable is set, and that you have access to the Visual Grid beta.

Installation

yarn add -D @proof-ui/applitools-plugin

Usage

// proof.config.js
import ApplitoolsPlugin from '@proof-ui/applitools-plugin';

export default {
  plugins: [
    new ApplitoolsPlugin({
      // Configuration
    })
  ]
};
# Command Line Usage
proof --visual

Optionally set the test batch name

# Easilly track down test results by setting the PR number in the batch-name
proof --visual --visual-batch-name 'PR #112'

Run visual diffs against every story, even if no tests are written for one, requires the add-all-plugin

# Every story will be visually tested
proof --visual --add-all

Options

You can configure the applitools-plugin through some options in it's constructor:

PropertyDescriptionTypeDefault
delayTime (in ms) to wait before taking a screen-shot. Useful for making sure images are loaded, and animations are complete.number (ms)1000
configureA function used to configure the screen size and browser combinations for use in testing. Accepts a single argument, an instance of an applitools Configuration objectfunction see Configuration

Example

To test a 100px by 200px screenshot on Edge:

import ApplitoolsPlugin from '@proff/applitools-plugin';
import { BrowserType } from '@applitools/eyes-selenium';

new ApplitoolsPlugin({
  configure(configuration) {
    configuration.addBrowser(100, 200, BrowserType.EDGE);
  }
});

Any number of browsers or emulated-browsers can be added to the test.

See Configuration for more details

Related

0.3.6

2 years ago

0.3.5

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.2.1

4 years ago

0.2.0

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.2

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.20-0

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.15

5 years ago

0.0.16

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago