Skip to content

Commit

Permalink
tweak export import test
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Apr 20, 2024
1 parent 2edec9f commit 1eab54b
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,15 @@ else if (cur_act.equals("SetPasswordActivity"))
}

boolean tox_online = false;
/*
while (!tox_online)
{
tox_online = MainActivity.tox_self_get_connection_status() != 0;
// HINT: wait for tox to get online
wait_(1, "for tox to get online");
}
*/
wait_(1);

setSharedPrefs();
PREF__window_security = false;
Expand Down Expand Up @@ -309,7 +312,7 @@ else if (cur_act.equals("SetPasswordActivity"))

export_tox_save();
screenshot("006");
wait_(2);
wait_(1);
import_tox_save();

wait_(120);
Expand All @@ -320,11 +323,15 @@ private static void import_tox_save()
{
try
{
onView(withId(R.id.button_import_savedata)).check(matches(isDisplayed())).perform(click());
Log.i(TAG, "importing tox save file:01");
onView(withId(R.id.buttons_scroll_view)).perform(custom_swipeUp());
Log.i(TAG, "importing tox save file:01a");
ViewInteraction vi = onView(withId(R.id.button_import_savedata)).check(matches(isDisplayed()));
vi.perform(click());
Log.i(TAG, "importing tox save file:01b");
}
catch (Exception e)
{
Log.i(TAG, "importing tox save file:01e");
onView(withId(R.id.buttons_scroll_view)).perform(custom_swipeUp());
try
{
Expand Down

0 comments on commit 1eab54b

Please sign in to comment.