Jenkins, xvfb-run and responsive designs
There’s a gotcha if you’re doing responsive designs (which rely on max-device-width) and running tests via xvfb-run: by default xvfb-run launches 640x480px server. Depending on your mobile optimization strategy this might cause mobile stylesheets to kick-in. In our case this hid some miscellaneous sign-up forms and as a result some tests failed. Just use xvfb-run -s “-screen 0 1600x1200x24″ to launch your tests. Or in case of Jenkins you can configure it in job configuration page.