Daily Shaarli
February 6, 2021
Follow up with the previous link, if I want to run system test cases in Rails using:
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_firefox, screen_size: [1400, 1400]
end
Then I need to install Firefox, as well as fonts, so that the screenshots are rendered properly.
apk add xvfb firefox ttf-dejavu
(note: fonts are required for Firefox to render pages)
A great article for using docker-compose as a dev environment for rails
An excellent article, with perhaps the best quote:
To generalize, the spending-and-employment trend has gone like this: Wealthy people didn’t go on vacations in 2020. So their spending fell, and their savings went up. And the employees who would have served them on that vacation lost their jobs, only kept above water by enhanced unemployment benefits.