@@ -9,7 +9,7 @@ import com.atiurin.ultron.extensions.*
9
9
import com.atiurin.ultron.testlifecycle.setupteardown.SetUpRule
10
10
import org.junit.Test
11
11
12
- class CustomClicksTest : BaseTest () {
12
+ class CustomClicksTest : BaseTest () {
13
13
14
14
private val startActivity = SetUpRule ().add {
15
15
ActivityScenario .launch(CustomClicksActivity ::class .java)
@@ -23,26 +23,47 @@ class CustomClicksTest: BaseTest() {
23
23
fun clickTopLeft () {
24
24
withId(R .id.imageView).clickTopLeft(offsetX = 30 , offsetY = 30 )
25
25
withId(R .id.rB_top_left).isChecked()
26
+ }
26
27
28
+ @Test
29
+ fun clickTopCenter () {
27
30
withId(R .id.imageView).clickTopCenter(offsetY = 30 )
28
31
withId(R .id.rB_top_center).isChecked()
32
+ }
29
33
34
+ @Test
35
+ fun clickTopRight () {
30
36
withId(R .id.imageView).clickTopRight(offsetX = - 30 , offsetY = 30 )
31
37
withId(R .id.rB_top_right).isChecked()
38
+ }
32
39
40
+ @Test
41
+ fun clickCenterRight () {
33
42
withId(R .id.imageView).clickCenterRight(offsetX = - 30 )
34
43
withId(R .id.rB_center_right).isChecked()
44
+ }
35
45
46
+ @Test
47
+ fun clickBottomRight () {
36
48
withId(R .id.imageView).clickBottomRight(offsetX = - 30 , offsetY = - 30 )
37
49
withId(R .id.rB_bottom_right).isChecked()
50
+ }
38
51
52
+ @Test
53
+ fun clickBottomCenter () {
39
54
withId(R .id.imageView).clickBottomCenter(offsetY = - 30 )
40
55
withId(R .id.rB_bottom_center).isChecked()
56
+ }
41
57
58
+ @Test
59
+ fun clickBottomLeft () {
42
60
withId(R .id.imageView).clickBottomLeft(offsetX = 30 , offsetY = - 30 )
43
61
withId(R .id.rB_bottom_left).isChecked()
62
+ }
44
63
64
+ @Test
65
+ fun clickCenterLeft () {
45
66
withId(R .id.imageView).clickCenterLeft(offsetX = 30 )
46
- withId(R .id.rB_center_right ).isChecked()
67
+ withId(R .id.rB_center_left ).isChecked()
47
68
}
48
69
}
0 commit comments