ArgosCIHelper for Codeceptjs
npm install codeceptjs-argoscihelper


CodeceptJS ArgosCIHelper helper.
NPM package:
npm i codeceptjs-ArgosCIHelper --save-dev
This helper should be added in your codeceptjs config file: codecept.conf.*
Example:
``js`
{
...
helpers: {
ArgosCIHelper: {
require: 'codeceptjs-ArgosCIHelper',
token: process.env.ARGOS_TOKEN,
screenshotsDir: './output/screenshots',
},
}
}
...
}
actor, try running npx codeceptjs def`js
Feature('Visual Regression Testing');Scenario('Test home page visual appearance', async ({ I }) => {
I.amOnPage('/');
await I.takeScreenshot('home-page');
});
`Output
`bash
CodeceptJS v3.6.5 #StandWithUkraine
Using test root "/Users/t/Desktop/projects/ArgosCIHelper/test"
Helpers: Playwright, ArgosCIHelper
Plugins: screenshotOnFail, tryTo, retryFailedStep, retryTo, eachElementVisual 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
``