[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:
@@ -84,6 +84,13 @@ public class ConfigureAccessPointFragmentTest {
|
||||
verify(mConfigureAccessPointFragment).handleSubmitAction();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void dispatchSubmit_shouldHandleSubmitAction() {
|
||||
mConfigureAccessPointFragment.dispatchSubmit();
|
||||
|
||||
verify(mConfigureAccessPointFragment).handleSubmitAction();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void onClickCancelButton_shouldHandleCancelAction() {
|
||||
mConfigureAccessPointFragment.getCancelButton().performClick();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user