Search code examples
imageunit-testingautomationdalekjs

Compare image in dalekjs


I wanted to automate image comparison through dalekjs. Aim is to have better image comparisons through external libraries but for starters a basic image comparison will do to tell if image on page is equal to local image. Help is highly appreciated.


Solution

  • Still experimental and is yet to be merged into DalekJS core, but you could try using gskachkov's pull request here which adds screenshot comparison functionality to DalekJS.

    Otherwise, I would recommend you to use PhantomCSS as your visual regression framework for the time being. PhantomCSS is built on top of CasperJS and uses Resemble.js for image comparison.