add when_visible because test is slow on Sauce

Change-Id: Ied7b4089a02b8f077482b64b65faadeac71357ea