Skip to content

webdriver-image-comparison@4.0.1

Choose a tag to compare

@github-actions github-actions released this 13 Feb 07:08
· 562 commits to main since this release

💥 Breaking Changes

  • fd74a35: (feat): set default baseline folder next to test file
    If you don't provide a baselineFolder in the service options, see below for an example
export const config: Options.Testrunner = {
    //...
    // ========
    // Services
    // ========
    services: [
        // ===================
        // Image compare setup
        // ===================
        [
            'visual',
            {
                //...
                baselineFolder: join(
                    process.cwd(),
                    './path/to/your/baseline/'
                ),
                //...
            },
        ],
    ],
   //...
}

then the default screenshots will be stored in a __snapshots__-folder next to the spec file executed to run the Visual tests. The folder ./wic/baseline/ was at the root of your project. Make sure you adjust your tests to it

🐛 Bug fix

  • e93a878: fix default snapshot path to be overwritten through method/service options
  • Updated dependencies [fd74a35]
    • webdriver-image-comparison@4.0.1

Committers: 2