Replace browser test with integration test
The browser test was testing the result of the undo action, which does
not necessitate browser interaction. Testing this through integration
and API interaction should be more robust, and also faster.
Bug: T201901
Change-Id: If44c7e0082205b9acd0086ea0241dca731d5565d