mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-21 16:02:04 +02:00
Make user add test work again
This commit is contained in:
@@ -86,7 +86,7 @@ public class UserAddTest {
|
|||||||
ScaleUser user = OpenScale.getInstance().getSelectedScaleUser();
|
ScaleUser user = OpenScale.getInstance().getSelectedScaleUser();
|
||||||
|
|
||||||
assertEquals("test", user.getUserName());
|
assertEquals("test", user.getUserName());
|
||||||
assertEquals(180, user.getBodyHeight());
|
assertEquals(180, user.getBodyHeight(), DELTA);
|
||||||
assertEquals(80, user.getInitialWeight(), DELTA);
|
assertEquals(80, user.getInitialWeight(), DELTA);
|
||||||
assertEquals(60, user.getGoalWeight(), DELTA);
|
assertEquals(60, user.getGoalWeight(), DELTA);
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ public class UserAddTest {
|
|||||||
allOf(withId(R.id.rowBodyHeight),
|
allOf(withId(R.id.rowBodyHeight),
|
||||||
childAtPosition(
|
childAtPosition(
|
||||||
withId(R.id.tableUserData),
|
withId(R.id.tableUserData),
|
||||||
1)),
|
5)),
|
||||||
1)));
|
1)));
|
||||||
editText3.perform(scrollTo(), replaceText("180"), closeSoftKeyboard());
|
editText3.perform(scrollTo(), replaceText("180"), closeSoftKeyboard());
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ public class UserAddTest {
|
|||||||
allOf(withId(R.id.tableRowInitialWeight),
|
allOf(withId(R.id.tableRowInitialWeight),
|
||||||
childAtPosition(
|
childAtPosition(
|
||||||
withId(R.id.tableUserData),
|
withId(R.id.tableUserData),
|
||||||
5)),
|
7)),
|
||||||
1)));
|
1)));
|
||||||
editText5.perform(scrollTo(), replaceText("80"), closeSoftKeyboard());
|
editText5.perform(scrollTo(), replaceText("80"), closeSoftKeyboard());
|
||||||
|
|
||||||
@@ -163,7 +163,7 @@ public class UserAddTest {
|
|||||||
allOf(withId(R.id.rowGoalWeight),
|
allOf(withId(R.id.rowGoalWeight),
|
||||||
childAtPosition(
|
childAtPosition(
|
||||||
withId(R.id.tableUserData),
|
withId(R.id.tableUserData),
|
||||||
6)),
|
8)),
|
||||||
1)));
|
1)));
|
||||||
editText6.perform(scrollTo(), replaceText("60"), closeSoftKeyboard());
|
editText6.perform(scrollTo(), replaceText("60"), closeSoftKeyboard());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user