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:
Doris Ling
2017-08-28 16:05:39 -07:00
parent 0617d139e0
commit d47606ab6d
113 changed files with 74 additions and 250 deletions

View File

@@ -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 WiFi hotspot")).perform();
UiObject2 item = mDevice.wait(Until.findObject(By.text("Portable WiFi hotspot")), TIMEOUT);
onView(withText("WiFi hotspot")).perform();
UiObject2 item = mDevice.wait(Until.findObject(By.text("WiFi hotspot")), TIMEOUT);
item.click();
}
}