chromeos: Fix and re-enable browser_tests SetTimeDialogBrowserTest.All
The test failures were caused by a real bug. For the set-time-dialog element, the keys of the prevValues_ object are HTML element IDs ("dateInput" and "timeInput"), not "date" and "time". I broke this when I changed the element IDs during the Material Design conversion of this dialog in March 2019. The failures were flaky because we didn't have an explicit test for reverting the input elements to their previous values. The occasional failures we say were due to element blur() events during test teardown that apparently depend on timing. Fix the bug and add an explicit test for reverting values. Bug: 996000 Test: browser_tests Change-Id: Ic0a286858e0563d32351da06536c881e541b1273 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773541 Commit-Queue: James Cook <jamescook@chromium.org> Auto-Submit: James Cook <jamescook@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#690921}
Showing
Please register or sign in to comment