File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
detox/android/detox/src/testFull/java/com/wix/detox/common Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import android.view.View
44import android.view.ViewGroup
55import android.widget.TextView
66import com.wix.detox.UTHelpers.mockViewHierarchy
7+ import com.wix.detox.reactnative.ReactNativeInfo
78import com.wix.detox.reactnative.ui.getAccessibilityLabel
89import org.assertj.core.api.Assertions
910import org.junit.Test
@@ -36,7 +37,8 @@ class UIExtensionsTest {
3637 fun `should return accessibility label according to children's content-description, recursively` () {
3738 val contentDescription1st = " cd.1"
3839 val contentDescription2nd = " cd.2"
39- val expectedLabel = " $contentDescription1st , $contentDescription2nd "
40+ val expectedLabel =
41+ if (ReactNativeInfo .rnVersion().minor >= 81 ) " $contentDescription1st , $contentDescription2nd " else " $contentDescription1st $contentDescription2nd "
4042
4143
4244 val parent: ViewGroup = mock()
You can’t perform that action at this time.
0 commit comments