errorpage_browsertests check document.body.innerText to see if an element is visible. This appears to include elements with opacity=0 (which is how the mobile layout hides content), so "hidden" text can appear to be non-hidden.
In order to get these tests passing for the mobile layout, we'll need to find a better way of testing if the text is present/visible.
This breaks for IDS_ERRORPAGES_SUGGESTION_CHECK_CONNECTION_HEADER, so it may be easiest to check for visibility for this element, and leave the other checks alone.
Comment 1 by bugdroid1@chromium.org
, May 5 2017