Add teardown to settings_egtest to clean up menus

Desktop / Chromium - Mike Baxley [chromium.org] - 14 June 2017 12:39 EDT

If a settings test fails, it can leave a menu open, causing the next test to fail. Add code to check for settings menus, and if they exist, close them.

Bug: 642696 Change-Id: I9a7928c0a4b0cd60c0109ef55d6e309b26fdcb3e Reviewed-on: https://chromium-review.googlesource.com/531857 Commit-Queue: Mike Baxley

fbf4e51 Add teardown to settings_egtest to clean up menus.
ios/chrome/browser/ui/settings/settings_egtest.mm | 25 +++++++++++++++++++++++
1 file changed, 25 insertions(+)

Upstream: git.chromium.org


  • Share