visibilitychange automated test