[browser test] make test pass in both Chrome and FF

Change-Id: I36fc3eb31d0a97145cff5f43aef3a5365286de29