[BrowserTest] update switch-edit-mode test for RSpec3

Change-Id: Ia040f8b6e76a42c2c80bda382bf6ad6f30988ba1