Fix tests for time format in settings
Because now we use different time format across the settings app. We need to update all the tests. Bug: 76113036 Test: RunSettingsRoboTests Change-Id: Id4f7d55775adfdeb1aa0ae234f35d515ced4f450
This commit is contained in:
@@ -133,7 +133,7 @@ public class DataUsageSummaryPreferenceTest {
|
||||
|
||||
bindViewHolder();
|
||||
assertThat(mCarrierInfo.getText().toString())
|
||||
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + "d ago");
|
||||
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + " days ago");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -148,7 +148,7 @@ public class DataUsageSummaryPreferenceTest {
|
||||
|
||||
bindViewHolder();
|
||||
assertThat(mCarrierInfo.getText().toString())
|
||||
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + "h ago");
|
||||
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + " hr ago");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -163,7 +163,7 @@ public class DataUsageSummaryPreferenceTest {
|
||||
|
||||
bindViewHolder();
|
||||
assertThat(mCarrierInfo.getText().toString())
|
||||
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + "m ago");
|
||||
.isEqualTo("Updated by " + DUMMY_CARRIER + " " + baseUnit + " min ago");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -199,7 +199,7 @@ public class DataUsageSummaryPreferenceTest {
|
||||
|
||||
bindViewHolder();
|
||||
assertThat(mCarrierInfo.getText().toString())
|
||||
.isEqualTo("Updated 2m ago");
|
||||
.isEqualTo("Updated 2 min ago");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user