Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running in history mode - base files do not get replaced #600

Open
4 tasks done
costag1982 opened this issue Nov 26, 2018 · 2 comments
Open
4 tasks done

Issue running in history mode - base files do not get replaced #600

costag1982 opened this issue Nov 26, 2018 · 2 comments

Comments

@costag1982
Copy link

costag1982 commented Nov 26, 2018

Hi,

I am having difficulty running wraith in history mode correctly as the base files do not seem to be getting replaced with the latest files.

1 - I set up wraith
2 - I update the history yaml file
3 - I set up the image folders
4 - I ran wraith history to create base images
5 - I ran wraith latest to create new images and compared

Up to step 5 everything looks correct.

6 - I then run wraith latest again, what I observe is it clears out my latest images and the base images remain as they are. So what this means is on the latest run its still creating new files and comparing then with the existing base files rather than updating them so my results are exactly the same each time.

Please can someone tell me if this is an issue or whether I am doing something wrong in the config etc?


Reporting a problem? Please describe the issue above, and complete the following checklist so that we can help you more quickly.

Issue checklist:

  • I have validated my config file against YAML Validator to make sure it is valid YAML.

  • I have run the wraith info command and pasted the output below:

DEBUG:   Command run:        info
DEBUG:   Wraith version:     4.2.3
DEBUG:   Ruby version:       ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
DEBUG:   ImageMagick:        Version: ImageMagick 6.9.3-7 Q16 x86_64 2016-03-27 http://www.imagemagick.org
DEBUG:   PhantomJS version:  2.1.1
DEBUG:   chromedriver version:  ChromeDriver 71.0.3578.33 (269aa0e3f0db08097f0fe231c7e6be200b6939f7)
DEBUG:   CasperJS version:   1.1.4
  • I have run the command in verbose mode (by adding verbose: true to my config) and pasted the output below:
DEBUG:   Command run:        latest configs/history.yaml
DEBUG:   Wraith version:     4.2.3
DEBUG:   Ruby version:       ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
DEBUG:   ImageMagick:        Version: ImageMagick 6.9.3-7 Q16 x86_64 2016-03-27 http://www.imagemagick.org
DEBUG:   PhantomJS version:  2.1.1
DEBUG:   chromedriver version:  ChromeDriver 71.0.3578.33 (269aa0e3f0db08097f0fe231c7e6be200b6939f7)
DEBUG:   CasperJS version:   1.1.4
DEBUG: #################################################
Config validated. No serious issues found.
Creating Folders
SAVING IMAGES
COPYING BASE IMAGES
Copying shots_history/additional_details to shots
Copying shots_history/your_overview to shots
Copying shots_history/broadband_talk to shots
Copying shots_history/customer_details to shots
Copying shots_history/error to shots
Copying shots_history/installation to shots
Copying shots_history/mobserve to shots
Copying shots_history/order_conf_default to shots
Copying shots_history/order_conf_with_image to shots
Copying shots_history/order_conf_with_install to shots
Copying shots_history/order_conf_with_install_and_image to shots
Copying shots_history/order_summary_default to shots
Copying shots_history/order_summary_ful_width to shots
Copying shots_history/payment to shots
Copying shots_history/prereg_confirmation to shots
Copying shots_history/prereg_form to shots
Copying shots_history/property_details to shots
Copying shots_history/recontracting_summary to shots
Copying shots_history/tv_hardware to shots
Copying shots_history/tv_software to shots
CROPPING IMAGES
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/additional_details/1024_chrome_pages_lib.png, shots/additional_details/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/additional_details/768_chrome_pages_lib.png, shots/additional_details/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/additional_details/320_chrome_pages_lib.png, shots/additional_details/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1657 - no cropping required. (shots/broadband_talk/320_chrome_pages_lib.png, shots/broadband_talk/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/additional_details/600_chrome_pages_lib.png, shots/additional_details/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1688 - no cropping required. (shots/broadband_talk/1024_chrome_pages_lib.png, shots/broadband_talk/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/additional_details/1280_chrome_pages_lib.png, shots/additional_details/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/customer_details/1024_chrome_pages_lib.png, shots/customer_details/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/customer_details/320_chrome_pages_lib.png, shots/customer_details/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1667 - no cropping required. (shots/broadband_talk/600_chrome_pages_lib.png, shots/broadband_talk/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1744 - no cropping required. (shots/broadband_talk/768_chrome_pages_lib.png, shots/broadband_talk/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/customer_details/1280_chrome_pages_lib.png, shots/customer_details/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/customer_details/600_chrome_pages_lib.png, shots/customer_details/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/customer_details/768_chrome_pages_lib.png, shots/customer_details/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1608 - no cropping required. (shots/broadband_talk/1280_chrome_pages_lib.png, shots/broadband_talk/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/installation/1024_chrome_pages_lib.png, shots/installation/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/installation/320_chrome_pages_lib.png, shots/installation/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/installation/1280_chrome_pages_lib.png, shots/installation/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/installation/768_chrome_pages_lib.png, shots/installation/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/error/320_chrome_pages_lib.png, shots/error/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/error/600_chrome_pages_lib.png, shots/error/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/error/768_chrome_pages_lib.png, shots/error/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/mobserve/1024_chrome_pages_lib.png, shots/mobserve/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/installation/600_chrome_pages_lib.png, shots/installation/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/mobserve/320_chrome_pages_lib.png, shots/mobserve/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/mobserve/600_chrome_pages_lib.png, shots/mobserve/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/mobserve/1280_chrome_pages_lib.png, shots/mobserve/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/error/1024_chrome_pages_lib.png, shots/error/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/mobserve/768_chrome_pages_lib.png, shots/mobserve/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/error/1280_chrome_pages_lib.png, shots/error/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/order_conf_default/320_chrome_pages_lib.png, shots/order_conf_default/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/order_conf_default/1024_chrome_pages_lib.png, shots/order_conf_default/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/order_conf_with_image/1024_chrome_pages_lib.png, shots/order_conf_with_image/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/order_conf_default/1280_chrome_pages_lib.png, shots/order_conf_default/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/order_conf_default/768_chrome_pages_lib.png, shots/order_conf_default/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/order_conf_default/600_chrome_pages_lib.png, shots/order_conf_default/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/order_conf_with_image/1280_chrome_pages_lib.png, shots/order_conf_with_image/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1562 - no cropping required. (shots/order_conf_with_image/320_chrome_pages_lib.png, shots/order_conf_with_image/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/order_conf_with_image/768_chrome_pages_lib.png, shots/order_conf_with_image/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1559 - no cropping required. (shots/order_conf_with_image/600_chrome_pages_lib.png, shots/order_conf_with_image/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/order_conf_with_install/1024_chrome_pages_lib.png, shots/order_conf_with_install/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1527 - no cropping required. (shots/order_conf_with_install/600_chrome_pages_lib.png, shots/order_conf_with_install/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1864 - no cropping required. (shots/order_conf_with_install/320_chrome_pages_lib.png, shots/order_conf_with_install/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/order_conf_with_install/768_chrome_pages_lib.png, shots/order_conf_with_install/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/order_conf_with_install/1280_chrome_pages_lib.png, shots/order_conf_with_install/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1501 - no cropping required. (shots/order_conf_with_install_and_image/1024_chrome_pages_lib.png, shots/order_conf_with_install_and_image/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1874 - no cropping required. (shots/order_conf_with_install_and_image/320_chrome_pages_lib.png, shots/order_conf_with_install_and_image/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/order_conf_with_install_and_image/1280_chrome_pages_lib.png, shots/order_conf_with_install_and_image/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1828 - no cropping required. (shots/order_conf_with_install_and_image/600_chrome_pages_lib.png, shots/order_conf_with_install_and_image/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/order_summary_default/1024_chrome_pages_lib.png, shots/order_summary_default/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1576 - no cropping required. (shots/order_conf_with_install_and_image/768_chrome_pages_lib.png, shots/order_conf_with_install_and_image/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/order_summary_ful_width/1024_chrome_pages_lib.png, shots/order_summary_ful_width/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x2108 - no cropping required. (shots/order_summary_default/320_chrome_pages_lib.png, shots/order_summary_default/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/order_summary_default/1280_chrome_pages_lib.png, shots/order_summary_default/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/order_summary_default/768_chrome_pages_lib.png, shots/order_summary_default/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/order_summary_ful_width/600_chrome_pages_lib.png, shots/order_summary_ful_width/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x2028 - no cropping required. (shots/order_summary_default/600_chrome_pages_lib.png, shots/order_summary_default/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/order_summary_ful_width/320_chrome_pages_lib.png, shots/order_summary_ful_width/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/order_summary_ful_width/1280_chrome_pages_lib.png, shots/order_summary_ful_width/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/payment/1024_chrome_pages_lib.png, shots/payment/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/order_summary_ful_width/768_chrome_pages_lib.png, shots/order_summary_ful_width/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 330x1500 - no cropping required. (shots/payment/320_chrome_pages_lib.png, shots/payment/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/payment/1280_chrome_pages_lib.png, shots/payment/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/payment/600_chrome_pages_lib.png, shots/payment/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/payment/768_chrome_pages_lib.png, shots/payment/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/prereg_confirmation/1024_chrome_pages_lib.png, shots/prereg_confirmation/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/prereg_confirmation/1280_chrome_pages_lib.png, shots/prereg_confirmation/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/prereg_confirmation/600_chrome_pages_lib.png, shots/prereg_confirmation/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/prereg_confirmation/768_chrome_pages_lib.png, shots/prereg_confirmation/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/prereg_confirmation/320_chrome_pages_lib.png, shots/prereg_confirmation/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/prereg_form/1024_chrome_pages_lib.png, shots/prereg_form/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/prereg_form/320_chrome_pages_lib.png, shots/prereg_form/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/prereg_form/600_chrome_pages_lib.png, shots/prereg_form/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/prereg_form/1280_chrome_pages_lib.png, shots/prereg_form/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/property_details/1024_chrome_pages_lib.png, shots/property_details/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/property_details/1280_chrome_pages_lib.png, shots/property_details/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/prereg_form/768_chrome_pages_lib.png, shots/prereg_form/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/property_details/600_chrome_pages_lib.png, shots/property_details/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/property_details/320_chrome_pages_lib.png, shots/property_details/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/recontracting_summary/320_chrome_pages_lib.png, shots/recontracting_summary/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/property_details/768_chrome_pages_lib.png, shots/property_details/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/recontracting_summary/1024_chrome_pages_lib.png, shots/recontracting_summary/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/recontracting_summary/600_chrome_pages_lib.png, shots/recontracting_summary/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/recontracting_summary/768_chrome_pages_lib.png, shots/recontracting_summary/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/recontracting_summary/1280_chrome_pages_lib.png, shots/recontracting_summary/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x3311 - no cropping required. (shots/tv_hardware/320_chrome_pages_lib.png, shots/tv_hardware/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x2138 - no cropping required. (shots/tv_hardware/1024_chrome_pages_lib.png, shots/tv_hardware/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x3400 - no cropping required. (shots/tv_hardware/600_chrome_pages_lib.png, shots/tv_hardware/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x1500 - no cropping required. (shots/your_overview/1024_chrome_pages_lib.png, shots/your_overview/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x1500 - no cropping required. (shots/your_overview/1280_chrome_pages_lib.png, shots/your_overview/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x1500 - no cropping required. (shots/your_overview/320_chrome_pages_lib.png, shots/your_overview/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x2302 - no cropping required. (shots/tv_hardware/768_chrome_pages_lib.png, shots/tv_hardware/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x2147 - no cropping required. (shots/tv_hardware/1280_chrome_pages_lib.png, shots/tv_hardware/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x1500 - no cropping required. (shots/your_overview/600_chrome_pages_lib.png, shots/your_overview/600_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 320x4479 - no cropping required. (shots/tv_software/320_chrome_pages_lib.png, shots/tv_software/320_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1024x2466 - no cropping required. (shots/tv_software/1024_chrome_pages_lib.png, shots/tv_software/1024_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x1500 - no cropping required. (shots/your_overview/768_chrome_pages_lib.png, shots/your_overview/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 1280x2316 - no cropping required. (shots/tv_software/1280_chrome_pages_lib.png, shots/tv_software/1280_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 768x2616 - no cropping required. (shots/tv_software/768_chrome_pages_lib.png, shots/tv_software/768_chrome_pages_lib_latest.png)
DEBUG: Both images are exactly 600x4767 - no cropping required. (shots/tv_software/600_chrome_pages_lib.png, shots/tv_software/600_chrome_pages_lib_latest.png)
COMPARING IMAGES
Comparing shots/additional_details/320_chrome_pages_lib.png and shots/additional_details/320_chrome_pages_lib_latest.png
Comparing shots/additional_details/1280_chrome_pages_lib.png and shots/additional_details/1280_chrome_pages_lib_latest.png
Comparing shots/additional_details/1024_chrome_pages_lib.png and shots/additional_details/1024_chrome_pages_lib_latest.png
Comparing shots/additional_details/768_chrome_pages_lib.png and shots/additional_details/768_chrome_pages_lib_latest.png
Comparing shots/additional_details/600_chrome_pages_lib.png and shots/additional_details/600_chrome_pages_lib_latest.png
Comparing shots/broadband_talk/1024_chrome_pages_lib.png and shots/broadband_talk/1024_chrome_pages_lib_latest.png
Comparing shots/broadband_talk/1280_chrome_pages_lib.png and shots/broadband_talk/1280_chrome_pages_lib_latest.png
Comparing shots/broadband_talk/320_chrome_pages_lib.png and shots/broadband_talk/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/broadband_talk/600_chrome_pages_lib.png and shots/broadband_talk/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/broadband_talk/768_chrome_pages_lib.png and shots/broadband_talk/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/customer_details/1024_chrome_pages_lib.png and shots/customer_details/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/customer_details/1280_chrome_pages_lib.png and shots/customer_details/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/customer_details/320_chrome_pages_lib.png and shots/customer_details/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/customer_details/600_chrome_pages_lib.png and shots/customer_details/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/customer_details/768_chrome_pages_lib.png and shots/customer_details/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/error/1024_chrome_pages_lib.png and shots/error/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/error/1280_chrome_pages_lib.png and shots/error/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/error/320_chrome_pages_lib.png and shots/error/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/error/600_chrome_pages_lib.png and shots/error/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/error/768_chrome_pages_lib.png and shots/error/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/installation/1024_chrome_pages_lib.png and shots/installation/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/installation/1280_chrome_pages_lib.png and shots/installation/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/installation/320_chrome_pages_lib.png and shots/installation/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/installation/600_chrome_pages_lib.png and shots/installation/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/installation/768_chrome_pages_lib.png and shots/installation/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/mobserve/1024_chrome_pages_lib.png and shots/mobserve/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/mobserve/1280_chrome_pages_lib.png and shots/mobserve/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/mobserve/320_chrome_pages_lib.png and shots/mobserve/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/mobserve/600_chrome_pages_lib.png and shots/mobserve/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/mobserve/768_chrome_pages_lib.png and shots/mobserve/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_default/1024_chrome_pages_lib.png and shots/order_conf_default/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_default/1280_chrome_pages_lib.png and shots/order_conf_default/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_default/320_chrome_pages_lib.png and shots/order_conf_default/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_default/600_chrome_pages_lib.png and shots/order_conf_default/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_default/768_chrome_pages_lib.png and shots/order_conf_default/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_image/1024_chrome_pages_lib.png and shots/order_conf_with_image/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_image/1280_chrome_pages_lib.png and shots/order_conf_with_image/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_image/320_chrome_pages_lib.png and shots/order_conf_with_image/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_image/600_chrome_pages_lib.png and shots/order_conf_with_image/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_image/768_chrome_pages_lib.png and shots/order_conf_with_image/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install/1024_chrome_pages_lib.png and shots/order_conf_with_install/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install/1280_chrome_pages_lib.png and shots/order_conf_with_install/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install/320_chrome_pages_lib.png and shots/order_conf_with_install/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install/600_chrome_pages_lib.png and shots/order_conf_with_install/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install/768_chrome_pages_lib.png and shots/order_conf_with_install/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install_and_image/1024_chrome_pages_lib.png and shots/order_conf_with_install_and_image/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install_and_image/1280_chrome_pages_lib.png and shots/order_conf_with_install_and_image/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install_and_image/320_chrome_pages_lib.png and shots/order_conf_with_install_and_image/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install_and_image/600_chrome_pages_lib.png and shots/order_conf_with_install_and_image/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_conf_with_install_and_image/768_chrome_pages_lib.png and shots/order_conf_with_install_and_image/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_default/1024_chrome_pages_lib.png and shots/order_summary_default/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_default/1280_chrome_pages_lib.png and shots/order_summary_default/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_default/320_chrome_pages_lib.png and shots/order_summary_default/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_default/600_chrome_pages_lib.png and shots/order_summary_default/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_default/768_chrome_pages_lib.png and shots/order_summary_default/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_ful_width/1024_chrome_pages_lib.png and shots/order_summary_ful_width/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_ful_width/1280_chrome_pages_lib.png and shots/order_summary_ful_width/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_ful_width/320_chrome_pages_lib.png and shots/order_summary_ful_width/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_ful_width/600_chrome_pages_lib.png and shots/order_summary_ful_width/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/order_summary_ful_width/768_chrome_pages_lib.png and shots/order_summary_ful_width/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/payment/1024_chrome_pages_lib.png and shots/payment/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/payment/1280_chrome_pages_lib.png and shots/payment/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/payment/320_chrome_pages_lib.png and shots/payment/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/payment/600_chrome_pages_lib.png and shots/payment/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/payment/768_chrome_pages_lib.png and shots/payment/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_confirmation/1024_chrome_pages_lib.png and shots/prereg_confirmation/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_confirmation/1280_chrome_pages_lib.png and shots/prereg_confirmation/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_confirmation/320_chrome_pages_lib.png and shots/prereg_confirmation/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_confirmation/600_chrome_pages_lib.png and shots/prereg_confirmation/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_confirmation/768_chrome_pages_lib.png and shots/prereg_confirmation/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_form/1024_chrome_pages_lib.png and shots/prereg_form/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_form/1280_chrome_pages_lib.png and shots/prereg_form/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_form/320_chrome_pages_lib.png and shots/prereg_form/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_form/600_chrome_pages_lib.png and shots/prereg_form/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/prereg_form/768_chrome_pages_lib.png and shots/prereg_form/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/property_details/1024_chrome_pages_lib.png and shots/property_details/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/property_details/1280_chrome_pages_lib.png and shots/property_details/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/property_details/320_chrome_pages_lib.png and shots/property_details/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/property_details/600_chrome_pages_lib.png and shots/property_details/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/property_details/768_chrome_pages_lib.png and shots/property_details/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/recontracting_summary/1024_chrome_pages_lib.png and shots/recontracting_summary/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/recontracting_summary/1280_chrome_pages_lib.png and shots/recontracting_summary/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/recontracting_summary/320_chrome_pages_lib.png and shots/recontracting_summary/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/recontracting_summary/600_chrome_pages_lib.png and shots/recontracting_summary/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/recontracting_summary/768_chrome_pages_lib.png and shots/recontracting_summary/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_hardware/1024_chrome_pages_lib.png and shots/tv_hardware/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_hardware/1280_chrome_pages_lib.png and shots/tv_hardware/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_hardware/320_chrome_pages_lib.png and shots/tv_hardware/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_hardware/600_chrome_pages_lib.png and shots/tv_hardware/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_hardware/768_chrome_pages_lib.png and shots/tv_hardware/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_software/1024_chrome_pages_lib.png and shots/tv_software/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_software/1280_chrome_pages_lib.png and shots/tv_software/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_software/320_chrome_pages_lib.png and shots/tv_software/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_software/600_chrome_pages_lib.png and shots/tv_software/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/tv_software/768_chrome_pages_lib.png and shots/tv_software/768_chrome_pages_lib_latest.png
Saved diff
Comparing shots/your_overview/1024_chrome_pages_lib.png and shots/your_overview/1024_chrome_pages_lib_latest.png
Saved diff
Comparing shots/your_overview/1280_chrome_pages_lib.png and shots/your_overview/1280_chrome_pages_lib_latest.png
Saved diff
Comparing shots/your_overview/320_chrome_pages_lib.png and shots/your_overview/320_chrome_pages_lib_latest.png
Saved diff
Comparing shots/your_overview/600_chrome_pages_lib.png and shots/your_overview/600_chrome_pages_lib_latest.png
Saved diff
Comparing shots/your_overview/768_chrome_pages_lib.png and shots/your_overview/768_chrome_pages_lib_latest.png
Saved diff
Saved diff
Saved diff
Saved diff
Saved diff
Saved diff
Saved diff
Saved diff
GENERATING THUMBNAILS
GENERATING GALLERY
Gallery generated
WARN: Failures detected:
WARN: 	 additional_details failed at a resolution of 320 (5.83% diff)
WARN: 	 order_conf_default failed at a resolution of 320 (5.75% diff)

View the gallery in your browser:
	 file:///Users/cgi13/Desktop/pages-lib-regression/shots/gallery.html
  • I have pasted the contents of my config file below:

browser: "chrome"
domains:
  pages_lib: "https://pages-lib.cf.dev-paas.bskyb.com"

paths:
  additional_details:
    path: /iframe.html?selectedKind=Templates%7CAdditionalDetailsTemplate&selectedStory=Default
  your_overview:
    path: /iframe.html?selectedKind=Templates%7CBasketOverviewTemplate&selectedStory=Default
  broadband_talk:
    path: /iframe.html?selectedKind=Templates%7CBroadbandTalkTemplate&selectedStory=Default
    before_capture: 'javascript/interact--chrome.js'
  customer_details:
    path: /iframe.html?selectedKind=Templates%7CCustomerDetailsTemplate&selectedStory=Default
  error:
    path: /iframe.html?selectedKind=Templates%7CErrorTemplate&selectedStory=Default
  installation:
    path: /iframe.html?selectedKind=Templates%7CInstallationTemplate&selectedStory=Default
    before_capture: 'javascript/interact--chrome.js'
  mobserve:
    path: /iframe.html?selectedKind=Templates%7CMobserv%20Routes&selectedStory=Default
  order_conf_default:
    path: /iframe.html?selectedKind=Templates%7COrderConfirmationTemplate&selectedStory=Default
  order_conf_with_image:
    path: /iframe.html?selectedKind=Templates%7COrderConfirmationTemplate&selectedStory=With%20image
    before_capture: 'javascript/interact--chrome.js'
  order_conf_with_install:
    path: /iframe.html?selectedKind=Templates%7COrderConfirmationTemplate&selectedStory=With%20installation%20details
  order_conf_with_install_and_image:
    path: /iframe.html?selectedKind=Templates%7COrderConfirmationTemplate&selectedStory=With%20image%20and%20activation%20details
  order_summary_default:
    path: /iframe.html?selectedKind=Templates%7COrderSummaryTemplate&selectedStory=Default
    before_capture: 'javascript/interact--chrome.js'
  order_summary_ful_width:
    path: /iframe.html?selectedKind=Templates%7COrderSummaryTemplate&selectedStory=Full%20Width%20-%20No%20Sidebar
  payment:
    path: /iframe.html?selectedKind=Templates%7CPaymentTemplate&selectedStory=Default
  prereg_confirmation:
    path: /iframe.html?selectedKind=Templates%7CPreRegConfirmationTemplate&selectedStory=Default
  prereg_form:
    path: /iframe.html?selectedKind=Templates%7CPreregFormTemplate&selectedStory=Default
  property_details:
    path: /iframe.html?selectedKind=Templates%7CPropertyTemplate&selectedStory=Default
  recontracting_summary:
    path: /iframe.html?selectedKind=Templates%7CRecontractingSummaryTemplate&selectedStory=Default
  tv_hardware:
    path: /iframe.html?selectedKind=Templates%7CTvHardwareTemplate&selectedStory=Default
    before_capture: 'javascript/interact--chrome.js'
  tv_software:
    path: /iframe.html?selectedKind=Templates%7CTvSoftwareTemplate&selectedStory=all%20components
    before_capture: 'javascript/interact--chrome.js' # (optional) JavaScript file to execute before taking the screenshot of this path.

screen_widths:
  - 320
  - 600
  - 768
  - 1024
  - 1280

resize_or_reload: 'resize'
history_dir: 'shots_history'
directory: 'shots'
fuzz: '20%'
threshold: 5

gallery:
  template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template'
  thumb_width:  200
  thumb_height: 200

mode: diffs_first
verbose: true
highlight_color: red
phantomjs_options: '--ignore-ssl-errors=true'
@jasonmce
Copy link

jasonmce commented Jan 18, 2019

My understanding is that history creates a "baseline," and each run of latest is compared against this baseline. It's not a rolling diff, but a "identify when it broke, and again when it recovered."

To do a rolling diff (showing what changed since the last run), you'd want to replace your history images with the prior run's snapshots before running latest again. I believe running either copy_old_shots or copy_base_images (not sure which) before your next run of latest will generate what you want.

The code is at https://github.com/BBC-News/wraith/blob/master/lib/wraith/folder.rb if you want to see the inner workings.

@khana25
Copy link

khana25 commented May 2, 2019

Try this:

(required for history mode, otherwise optional) The directory that your base screenshots will be stored in.

history_dir: 'history/shots_base'

(required) The directory that your latest screenshots will be stored in

directory: 'history/shots'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants