-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test Automation] Kombucha verbs for selecting combobox items.
This CL: - Adds SelectItem() command to InteractionTestUtil. - Adds SelectItem() verb to InteractiveBrowserTestApi. - Implements SelectItem() for views::Combobox and views::EditableCombobox in views::InteractionTestUtilSimulatorViews. - Migrates existing Kombucha tests to use the new verb. - Removes a bunch of *ForTest() methods in views::EditableCombobox in favor of a couple of friend directives. Because of the complexity of EditableCombobox and its event handling, I did need to friend InteractionTestUtilSimulatorViews. Unlike previous test code, this new simulator code actually opens the combobox to select an item instead of forcing the selected index or text in code; this hits more of the actual [Editable]Combobox selection logic and makes the tests more "realistic". SHERIFF NOTE: There is a small chance that the views_unittests tests for the simulator will flake because comboboxu popups may not be reliable in multiprocess/ heavily-sharded environments; in this case, we'll move the unit tests to interactive_ui_tests, but they should still run very quickly. Change-Id: I6dce5ba7d41850f90b6d56006af49702dd21af45 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4007335 Reviewed-by: Peter Kasting <pkasting@chromium.org> Commit-Queue: Dana Fried <dfried@chromium.org> Cr-Commit-Position: refs/heads/main@{#1068926}
- Loading branch information
Dana Fried
authored and
Chromium LUCI CQ
committed
Nov 9, 2022
1 parent
8644027
commit 6951d12
Showing
18 changed files
with
636 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.