Automattic / wp-e2e-tests

Automated end-to-end tests for WordPress.com

Home Page:https://github.com/Automattic/wp-calypso

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplified Chinese font is missing in i18n NUX screenshots on CI.

southp opened this issue · comments

Please see the screenshot:
image

It seems to be something similar to #645. @hoverduck Do you think this is something fixable by the same approach as Automattic/wp-e2e-tests-i18n#4?

Yeah, that's likely going to require a similar fix. @rachelmcr I lost track, where do the i18n NUX tests run, is that in a wrapper repo or here in the main one? Wherever they run we'll need to add a step to the CircleCI config file to install the fonts.

The i18n NUX tests run in wp-e2e-tests-i18n so we should be able to install the necessary Chinese fonts as we did with the Japanese fonts here:

https://github.com/Automattic/wp-e2e-tests-i18n/blob/master/circle.yml#L17

@southp Do you know which font(s) are needed? I can look into that but I figured I'd check in case you can make a recommendation for that.

I tried a fix that installs fonts-noto-cjk but I get an error:

E: Unable to locate package fonts-noto-cjk

I'm not too familiar with installing fonts like this so I'm not sure if I'm missing a step (I've already tried adding sudo apt-get update first, but no luck) or if I need to use a different font.

I have no idea if it's the right font package or not, but I was able to sudo apt-get install fonts-wqy-zenhei (based off of this link that says it's a "complete Chinese font")

@hoverduck I don't have much experience with kubuntu, butfonts-wqy-zenhei looks quite promising. Is there a way that I can generate the same screenshots locally on my own? I'd love to help verify :)

I believe this should do the trick: Automattic/wp-e2e-tests-i18n#6

@rachelmcr where do these screenshots end up? I forget and I can't remember where to look. Do you know if there's doco on these i18n tests and screenshots?

where do these screenshots end up? I forget and I can't remember where to look. Do you know if there's doco on these i18n tests and screenshots?

Failures are sent to #i18n-bots in Slack and reviewed by Team Global directly.

I don't believe these tests are documented. They were added in #635 but the -I flag was never documented — I'll at least add that flag to our README for reference. (Also worth noting that these are different from the tests I set up with the -i flag, which I don't believe are being used at the moment.)