[Wi-Fi] Fix check mark button when edit the password of a secured network.

Should handle WifiConfigUiBase#dispatchSubmit() for check mark button events.

Bug: 152144169
Test: make RunSettingsRoboTests ROBOTEST_FILTER=ConfigureWifiEntryFragmentTest
      make RunSettingsRoboTests ROBOTEST_FILTER=ConfigureAccessPointFragmentTest
Change-Id: I35cbc1cdd6fbef3fd51aaa8dec94722e4155b7f4
This commit is contained in:
Arc Wang
2020-03-25 17:14:28 +08:00
parent 750ff89856
commit b011c5bf82
4 changed files with 18 additions and 4 deletions

View File

@@ -88,6 +88,13 @@ public class ConfigureWifiEntryFragmentTest {
verify(mConfigureWifiEntryFragment).handleSubmitAction();
}
@Test
public void dispatchSubmit_shouldHandleSubmitAction() {
mConfigureWifiEntryFragment.dispatchSubmit();
verify(mConfigureWifiEntryFragment).handleSubmitAction();
}
@Test
public void onClickCancelButton_shouldHandleCancelAction() {
mConfigureWifiEntryFragment.getCancelButton().performClick();