bbc / wraith

Wraith — A responsive screenshot comparison tool

Home Page:http://bbc-news.github.io/wraith/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accent in URL doesn't work

timotheemoulin opened this issue · comments

I'm using wraith to automate tests after CMS updates for multilingual websites (french included).
As the CMS allow to use accents in the URL, I need wraith to be able to browse URL with accent characteres such as éàèê...


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: #################################################
DEBUG:   Command run:        info
DEBUG:   Wraith version:     4.2.1
DEBUG:   Ruby version:       ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
DEBUG:   ImageMagick:        Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-11-16 http://www.imagemagick.org
DEBUG:   PhantomJS version:  2.1.1
DEBUG:   chromedriver version:  ChromeDriver 2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7)
DEBUG:   CasperJS version:   1.1.1
DEBUG: #################################################
  • I have run the command in verbose mode (by adding verbose: true to my config) and pasted the output below:
DEBUG: #################################################
DEBUG:   Command run:        capture site.yml -vvv
DEBUG:   Wraith version:     4.2.1
DEBUG:   Ruby version:       ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
DEBUG:   ImageMagick:        Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-11-16 http://www.imagemagick.org
DEBUG:   PhantomJS version:  2.1.1
DEBUG:   chromedriver version:  ChromeDriver 2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7)
DEBUG:   CasperJS version:   1.1.1
DEBUG: #################################################
Config validated. No serious issues found.
Creating Folders
SAVING IMAGES
DEBUG: phantomjs --ignore-ssl-errors=true '/usr/local/lib/ruby/gems/2.1.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js' 'https://site.nitr.docker/tallé-chocolate' '1920' 'shots_latest/about-chocolate/1920_phantomjs_docker.png' 'body' 'false' 'false'
DEBUG: phantomjs --ignore-ssl-errors=true '/usr/local/lib/ruby/gems/2.1.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js' 'https://site.nitr.docker/tallé-chocolate' '1920' 'shots_latest/about-chocolate/1920_phantomjs_test.png' 'body' 'false' 'false'
Loading https://site.nitr.docker/tall��-chocolate at dimensions: 1920x1500

Loading https://site.nitr.docker/tall��-chocolate at dimensions: 1920x1500

Error with page https://site.nitr.docker/tall��-chocolate

Error with page https://site.nitr.docker/tall��-chocolate

WARN: Failed to capture image shots_latest/about-chocolate/1920_phantomjs_docker.png on attempt number 1 of 5
WARN: Failed to capture image shots_latest/about-chocolate/1920_phantomjs_test.png on attempt number 1 of 5
  • I have pasted the contents of my config file below:
# See: http://bbc-news.github.io/wraith/configs.html
# See: https://digitalfactory.virtua.ch/projects/ddev-docs/wiki/Wraith
# Usage:
# 1. `wraith spider site.yml`
# 2. `wraith history site.yml`
# 3. `wraith latest site.yml`

# @todo Set the URL the tested site here
domains:
  docker: https://site.nitr.docker
  prod: https://prod.nitr.docker

# Following config should not be changed
browser: phantomjs

phantomjs_options: --ignore-ssl-errors=true

# This file will be created/updated with: `wraith spider site.yml`
paths:
  homepage: /
  news: /news-events
  sitemap: /sitemap
  categories: /categories
  about-chocolate: /tallé-chocolate
  contact: /contact
  contact-us: /contact-us

directory: shots_latest
#history_dir: shots_history
screen_widths:
#  - 360
#  - 768
#  - 1366
  - 1920

gallery:
  template: slideshow_template
  thumb_width:  320
  thumb_height: 200
mode: diffs_first
highlight_color: red
fuzz: 20%
threshold: 10

verbose: true