DescriptionPasswordManager browser test: simplify checking for password prompt
Currently, every single test case needs to check whether the infobar or tha password bubble is used, and do different checks accordingly. Even worse, auto-saving behaviour is different for those two, so people modifying existing tests are very likely to have false expectations.
This CL creates a PromptObserver class by decoupling prompt observing from navigation observation. PromptObserver takes care of the differences between infobar and bubble automatically, and provides a clear API to check for the prompt being shown, and to instruct the prompt to save passwords, respectively.
BUG=392144
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282772
Patch Set 1 : #Patch Set 2 : Just rebased #Patch Set 3 : Fix the problem with infobars #
Total comments: 18
Patch Set 4 : Comments addressed + git cl format #Patch Set 5 : Just rebased #Messages
Total messages: 10 (0 generated)
|