You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract from 'expected-screenshots/Comparison_segmented_visitorlog.png':
Without additional fonts:
run ./console tests:run-ui --persist-fixture-data Comparison
fails:
2) should show the segmented visitor log popup for the compared row/segment/period when clicked
images differ in 2870 pixels (command output: 2870)
Generated screenshot: /var/www/html/tests/UI/processed-ui-screenshots/Comparison_segmented_visitorlog.png
Expected screenshot: /var/www/html/tests/UI/expected-screenshots/Comparison_segmented_visitorlog.png
Url to reproduce: http://matomo.ddev.site/tests/PHPUnit/proxy/?module=Widgetize&action=iframe&moduleToWidgetize=Referrers&idSite=1&period=year&date=2012-08-09&actionToWidgetize=getSearchEngines&viewDataTable=table&filter_limit=5&isFooterExpandedInDashboard=1&compareDates[]=2012-01-01,2012-01-31&comparePeriods[]=range#?period=year&date=2012-08-09&popover=RowAction%243ASegmentVisitorLog%243AReferrers.getSearchEngines%243AreferrerName%24253D%24253DGoogle%243A%24257B%242522date%242522%24253A%2425222012-01-01%24252C2012-01-31%242522%24252C%242522period%242522%24253A%242522range%242522%24252C%242522comparePeriods%242522%24253A%242522%242522%24252C%242522compareDates%242522%24253A%242522%242522%24257D
No captured console logs.
Extract from 'processed-ui-screenshots/Comparison_segmented_visitorlog.png':
With DejaVu fonts installed:
run ./console tests:run-ui --persist-fixture-data Comparison
fails:
2) Comparison
should show the segmented visitor log popup for the compared row/segment/period when clicked:
images differ in 274 pixels (command output: 274)
Generated screenshot: /var/www/html/tests/UI/processed-ui-screenshots/Comparison_segmented_visitorlog.png
Expected screenshot: /var/www/html/tests/UI/expected-screenshots/Comparison_segmented_visitorlog.png
Url to reproduce: http://matomo.ddev.site/tests/PHPUnit/proxy/?module=Widgetize&action=iframe&moduleToWidgetize=Referrers&idSite=1&period=year&date=2012-08-09&actionToWidgetize=getSearchEngines&viewDataTable=table&filter_limit=5&isFooterExpandedInDashboard=1&compareDates[]=2012-01-01,2012-01-31&comparePeriods[]=range#?period=year&date=2012-08-09&popover=RowAction%243ASegmentVisitorLog%243AReferrers.getSearchEngines%243AreferrerName%24253D%24253DGoogle%243A%24257B%242522date%242522%24253A%2425222012-01-01%24252C2012-01-31%242522%24252C%242522period%242522%24253A%242522range%242522%24252C%242522comparePeriods%242522%24253A%242522%242522%24252C%242522compareDates%242522%24253A%242522%242522%24257D
No captured console logs.
Extract from 'processed-ui-screenshots/Comparison_segmented_visitorlog.png':
The still missing 274 pixel difference is triggered by image rendering/smoothing 🤷
Thanks for the report @rr-it. Since you've been through the documentation about this just now, would you be keen to open a PR adding the hint in the 5.x docs?
You need some extra fonts to get the expected screenshots for the UI Tests - see:
developer-documentation/docs/5.x/tests-ui.md
Lines 37 to 41 in 5f09c4d
Especially the 'REPLACEMENT CHARACTER' � (
U+FFFD
) is not rendered by MS-fonts but by DejaVu instead!Add a hint in the docs to install
fonts-dejavu
, as it is not installed by default in e.g. a slim docker container:Steps to reproduce on Debian:
Expected result:
Extract from 'expected-screenshots/Comparison_segmented_visitorlog.png':
Without additional fonts:
./console tests:run-ui --persist-fixture-data Comparison
Extract from 'processed-ui-screenshots/Comparison_segmented_visitorlog.png':
With DejaVu fonts installed:
./console tests:run-ui --persist-fixture-data Comparison
Extract from 'processed-ui-screenshots/Comparison_segmented_visitorlog.png':
Further investigation:
– Output from Debian environment –
fc-match
andfc-list
:U+FFFD
:fonts-dejavu
:U+FFFD
:Complete output fc-list :charset=FFFD (click to open)
The text was updated successfully, but these errors were encountered: