Move tests from tests/app/ to tests/unit/
- second round, move all remaining items - removed SoundSettingsIntegrationTest and DashboardAdapterTest as they are obsolete. Fixes: 62103184 Test: make SettingsUnitTests Change-Id: Idc2eeb285acd209ef2d00c5451fff697002e1734
This commit is contained in:
@@ -66,15 +66,15 @@ public class WifiTetherSettingsTest {
|
||||
@Test
|
||||
public void launchTetherSettings_shouldHaveAllFields() {
|
||||
launchWifiTetherActivity();
|
||||
onView(withText("Network name")).check(matches(isDisplayed()));
|
||||
onView(withText("Password")).check(matches(isDisplayed()));
|
||||
onView(withText("Select AP Band")).check(matches(isDisplayed()));
|
||||
onView(withText("Hotspot name")).check(matches(isDisplayed()));
|
||||
onView(withText("Hotspot password")).check(matches(isDisplayed()));
|
||||
onView(withText("AP Band")).check(matches(isDisplayed()));
|
||||
}
|
||||
|
||||
private void launchWifiTetherActivity() {
|
||||
mInstrumentation.startActivitySync(mTetherActivityIntent);
|
||||
onView(withText("Portable Wi‑Fi hotspot")).perform();
|
||||
UiObject2 item = mDevice.wait(Until.findObject(By.text("Portable Wi‑Fi hotspot")), TIMEOUT);
|
||||
onView(withText("Wi‑Fi hotspot")).perform();
|
||||
UiObject2 item = mDevice.wait(Until.findObject(By.text("Wi‑Fi hotspot")), TIMEOUT);
|
||||
item.click();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user