Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSmartCell committed Feb 19, 2024
1 parent 5ea7b3b commit 8505508
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import static com.alphawallet.app.steps.Steps.closeSecurityWarning;
import static com.alphawallet.app.steps.Steps.createNewWallet;
import static com.alphawallet.app.steps.Steps.gotoSettingsPage;
import static com.alphawallet.app.steps.Steps.scrollToImproved;
import static com.alphawallet.app.steps.Steps.selectMenu;
import static com.alphawallet.app.util.Helper.click;

Expand Down Expand Up @@ -38,7 +39,10 @@ public void title_should_see_crash_report_settings_page()
gotoSettingsPage();
selectMenu("Advanced");
Helper.wait(1);
onView(withId(R.id.layout)).perform(swipeUp());
onView(withId(R.id.scroll_layer)).perform(swipeUp());
onView(withId(R.id.scroll_layer)).perform(swipeUp());
onView(withSubstring("Crash")).perform(scrollToImproved());

click(withSubstring("Crash"));
shouldSee("Share Anonymous Data");
}
Expand Down
23 changes: 15 additions & 8 deletions app/src/main/res/layout/activity_generic_settings.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<include layout="@layout/layout_simple_toolbar" />

<View style="@style/Aw.Component.Separator" />

<LinearLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
<ScrollView
android:id="@+id/scroll_layer"
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />

</ScrollView>

</LinearLayout>

0 comments on commit 8505508

Please sign in to comment.