Skip to content

Commit 43e2ab0

Browse files
authored
[MOB-10051] Bump Android SDK to v11.4.1 (#164)
* Bump Android SDK to v11.4.1 * Fix Email EditText's ViewMatcher (#166)
1 parent 5e90bda commit 43e2ab0

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Unreleased
22

3+
* Bumps Instabug Android SDK to v11.4.1
34
* Adds TypeScript support
45

56
## v11.0.1 (2022-08-24)

example/tests/src/android/androidTest/InvokeInstabugUITest.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
import static androidx.test.espresso.Espresso.onView;
44
import static androidx.test.espresso.action.ViewActions.click;
55
import static androidx.test.espresso.action.ViewActions.replaceText;
6+
import static androidx.test.espresso.matcher.ViewMatchers.withParent;
67
import static androidx.test.espresso.matcher.ViewMatchers.withResourceName;
78
import static androidx.test.espresso.matcher.ViewMatchers.withText;
89

10+
import static org.hamcrest.Matchers.allOf;
11+
912
import androidx.test.ext.junit.rules.ActivityScenarioRule;
1013
import androidx.test.ext.junit.runners.AndroidJUnit4;
1114

@@ -23,10 +26,17 @@ public class InvokeInstabugUITest {
2326
@Test
2427
public void ensureInstabugInvocation() throws InterruptedException {
2528
Thread.sleep(5000);
26-
onView(withResourceName("instabug_floating_button")).perform(click());
2729

30+
onView(withResourceName("instabug_floating_button")).perform(click());
2831
onView(withText("Report a bug")).perform(click());
29-
onView(withResourceName("instabug_edit_text_email")).perform(replaceText("[email protected]"));
32+
33+
onView(
34+
allOf(
35+
withResourceName("ib_edit_text"),
36+
withParent(withResourceName("instabug_edit_text_email"))
37+
)
38+
).perform(replaceText("[email protected]"));
39+
3040
onView(withResourceName("instabug_bugreporting_send")).perform(click());
3141
onView(withResourceName("instabug_success_dialog_container")).perform(click());
3242
}

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<uses-permission android:name="android.permission.INTERNET"/>
6969
</config-file>
7070

71-
<framework src="com.instabug.library:instabug:11.2.0"/>
71+
<framework src="com.instabug.library:instabug:11.4.1"/>
7272

7373
<source-file src="src/android/IBGPlugin.java" target-dir="src/com/instabug/cordova/plugin"/>
7474
<source-file src="src/android/util/Util.java" target-dir="src/com/instabug/cordova/plugin/util"/>

0 commit comments

Comments
 (0)