codeceptjs-argoscihelper
TypeScript icon, indicating that this package has built-in type declarations

1.0.24 • Public • Published

Donate with PayPal "Buy Me A Coffee"

Covered by Argos Visual Testing

codeceptjs-ArgosCIHelper

CodeceptJS ArgosCIHelper helper.

The philosophy of Argos

Argos handles its own 'commit status' or 'check' updates. When you approve screenshots, the status is automatically updated by Argos. Visual comparison does not take place during tests; it occurs separately within the Argos process.

ArgosCI pipeline

Approved changes

Pipelines all green

NPM package: https://www.npmjs.com/package/codeceptjs-ArgosCIHelper

Installation

npm i codeceptjs-ArgosCIHelper --save-dev

Configuration

This helper should be added in your codeceptjs config file: codecept.conf.*

Example:

{
...
   helpers: {
     ArgosCIHelper: {
      require: 'codeceptjs-ArgosCIHelper',
      token: process.env.ARGOS_TOKEN,
      screenshotsDir: './output/screenshots',
    },
    }
   }
...
}

Usage

  • If there is no auto complete for I actor, try running npx codeceptjs def
Feature('Visual Regression Testing');

Scenario('Test home page visual appearance', async ({ I }) => {
  I.amOnPage('/');
  await I.takeScreenshot('home-page');
});

Output

CodeceptJS v3.6.5 #StandWithUkraine
Using test root "/Users/t/Desktop/projects/ArgosCIHelper/test"
Helpers: Playwright, ArgosCIHelper
Plugins: screenshotOnFail, tryTo, retryFailedStep, retryTo, eachElement

Visual Regression Testing --
    [1]  Starting recording promises
    Timeouts: 
 › [Session] Starting singleton browser session
  Test home page visual appearance
    I am on page "/"
    I take screenshot "home-page"
    › Screenshot is saving to /Users/t/Desktop/projects/ArgosCIHelper/test/output/screenshots/home-page.png
Screenshot saved: ./output/screenshots/home-page.png
  ✔ OK in 1683ms


  OK  | 1 passed   // 10s

Dependencies (5)

Dev Dependencies (4)

Package Sidebar

Install

npm i codeceptjs-argoscihelper

Weekly Downloads

2

Version

1.0.24

License

ISC

Unpacked Size

17.8 kB

Total Files

11

Last publish

Collaborators

  • thanh.nguyen