MCPcopy Create free account

hub / github.com/cypress-visual-regression/cypress-visual-regression / functions

Functions33 in github.com/cypress-visual-regression/cypress-visual-regression

↓ 44 callersMethodcompareSnapshot
* Take a screenshot and trigger a visual regression check * If visualRegressionType is set to 'base', create a base screenshot, no comparison t
src/command.ts:38
↓ 10 callersFunctioncompareSnapshots
( options: VisualRegressionOptions & { retryAttempt: number } )
src/plugin.ts:85
↓ 5 callersFunctionaddCompareSnapshotCommand
Add custom cypress command to compare image snapshots of an element or the window.
src/command.ts:84
↓ 5 callersFunctionconfigureVisualRegression
(on: Cypress.PluginEvents)
src/plugin.ts:158
↓ 5 callersFunctionformat
(colorFormat: ChalkInstance, messages: unknown[])
src/utils/logger.ts:22
↓ 5 callersFunctionprintDate
(colorFormat: ChalkInstance)
src/utils/logger.ts:42
↓ 4 callersFunctionadjustCanvas
(image: PNG, width: number, height: number)
src/utils/image.ts:12
↓ 4 callersFunctionlogLevel
()
src/utils/logger.ts:15
↓ 2 callersFunctioncypressConfigWithEnv
(expose: Cypress.ConfigOptions['expose'])
tests/integration/cypress.common.config.ts:30
↓ 2 callersMethodoverwrite
* Overwrite compareSnapshot as a dual command. Cypress injects the previous subject * as the first argument when compareSnapshot is chained fro
src/command.ts:47
↓ 2 callersFunctionupdateSnapshot
(options: UpdateSnapshotOptions)
src/plugin.ts:70
↓ 1 callersFunctioncompareScreenshots
Call the plugin to compare snapshot images and generate a diff
src/command.ts:236
↓ 1 callersFunctionconstructCypressError
(log: Cypress.Log, err: Error)
src/command.ts:321
↓ 1 callersFunctioncreateTempBaseDirectory
(screenshotName: string)
src/plugin.spec.ts:34
↓ 1 callersFunctiongetCommandRuntimeEnv
()
src/command.ts:70
↓ 1 callersFunctiongetVisual
(images: VisualRegressionImages)
src/command.ts:328
↓ 1 callersFunctionisLogLevel
(level: string)
src/utils/logger.ts:11
↓ 1 callersFunctionprepareOptions
( name: string, screenshotOptions: Partial<Cypress.ScreenshotOptions & PluginOptions>, commandOptions: P
src/command.ts:134
↓ 1 callersFunctionshouldUpdateOnRegressionError
(options: VisualRegressionOptions)
src/plugin.ts:62
↓ 1 callersFunctiontakeScreenshot
Take a screenshot and move screenshot to base or actual folder
src/command.ts:213
↓ 1 callersFunctionupdateSnapshots
Call the plugin to update base snapshot images
src/command.ts:296
Functionalways
(...messages: unknown[])
src/utils/logger.ts:70
Functiondebug
(...messages: unknown[])
src/utils/logger.ts:64
Functionerror
(...messages: unknown[])
src/utils/logger.ts:46
Functioninfo
(...messages: unknown[])
src/utils/logger.ts:58
FunctiononAfterScreenshot
(_el, props)
src/command.ts:225
FunctiononBeforeScreenshot
($el: JQuery)
tests/ts/cypress/support/e2e.ts:15
FunctionsetupNodeEvents
(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions)
tests/integration/cypress.common.config.ts:13
FunctionsetupNodeEvents
(on, config)
tests/esm/cypress.config.js:10
FunctionsetupNodeEvents
(on, config)
tests/ts/cypress.config.ts:10
FunctionsetupNodeEvents
(on)
tests/ts-alt/cypress.config.ts:10
FunctionsetupNodeEvents
(on, config)
tests/cjs/cypress.config.js:10
Functionwarn
(...messages: unknown[])
src/utils/logger.ts:52