@@ -32,24 +32,12 @@ private extension ExampleApplication {
32
32
buttons [ " Show various UIControls " ] . tap ( )
33
33
}
34
34
35
- func tapTextField( ) {
36
- tables. cells
35
+ func tapTextField( _ text : String ) {
36
+ let textField = tables. cells
37
37
. containing ( . staticText, identifier: " UITextField " )
38
38
. children ( matching: . textField) . element
39
- . tap ( )
40
- }
41
-
42
- func enterTextUsingKeyboard( _ text: String ) {
43
- // NOTE: RUMM-740 iOS 13 Swipe typing feature presents its onboarding
44
- // That blocks the keyboard with a Continue button
45
- // it must be tapped first to get the real keyboard
46
- let swipeTypingContinueButton = buttons [ " Continue " ]
47
- if swipeTypingContinueButton. exists {
48
- swipeTypingContinueButton. tap ( )
49
- }
50
- text. forEach { letter in
51
- keys [ String ( letter) ] . tap ( )
52
- }
39
+ textField. tap ( )
40
+ textField. typeText ( text)
53
41
}
54
42
55
43
func dismissKeyboard( ) {
@@ -63,7 +51,7 @@ private extension ExampleApplication {
63
51
}
64
52
65
53
func moveSlider( to position: CGFloat ) {
66
- tables. sliders [ " 50% " ] . adjust ( toNormalizedSliderPosition: position)
54
+ tables. sliders. firstMatch . adjust ( toNormalizedSliderPosition: position)
67
55
}
68
56
69
57
func tapSegmentedControlSegment( label: String ) {
@@ -96,8 +84,7 @@ class RUMTapActionScenarioTests: IntegrationTests, RUMCommonAsserts {
96
84
app. tapShowUICollectionView ( )
97
85
app. tapCollectionViewItem ( atIndex: 14 )
98
86
app. tapShowVariousUIControls ( )
99
- app. tapTextField ( )
100
- app. enterTextUsingKeyboard ( " foo " )
87
+ app. tapTextField ( " foo " )
101
88
app. dismissKeyboard ( )
102
89
app. tapStepperPlusButton ( )
103
90
app. moveSlider ( to: 0.25 )
0 commit comments