mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-14 22:09:29 +02:00
chore: setup Argos Visual Testing on E2E
This commit is contained in:

committed by
Sidharth Vinod

parent
ecee23d8ba
commit
91e8bcaba9
@@ -2,6 +2,8 @@ import { defineConfig } from 'cypress';
|
||||
import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin';
|
||||
import coverage from '@cypress/code-coverage/task';
|
||||
import eyesPlugin from '@applitools/eyes-cypress';
|
||||
import { registerArgosTask } from '@argos-ci/cypress/task';
|
||||
|
||||
export default eyesPlugin(
|
||||
defineConfig({
|
||||
projectId: 'n2sma2',
|
||||
@@ -21,6 +23,12 @@ export default eyesPlugin(
|
||||
// copy any needed variables from process.env to config.env
|
||||
config.env.useAppli = process.env.USE_APPLI ? true : false;
|
||||
|
||||
// Argos
|
||||
registerArgosTask(on, config, {
|
||||
uploadToArgos: !!process.env.CI,
|
||||
token: process.env.ARGOS_TOKEN,
|
||||
});
|
||||
|
||||
// do not forget to return the changed config object!
|
||||
return config;
|
||||
},
|
||||
|
Reference in New Issue
Block a user