@@ -5,12 +5,9 @@ import 'package:patrol/patrol.dart';
55import 'utils/utils.dart' ;
66
77Future <void > assertOptionsPromptIsDisplayed (PatrolIntegrationTester $) async {
8- final floatingButton = await $.native2.getNativeViews (NativeSelector (
9- ios: IOSSelector (
10- identifier: 'IBGReportBugPromptOptionAccessibilityIdentifier' ),
11- android: AndroidSelector (
12- resourceName:
13- 'com.instabug.flutter.example:id/instabug_main_prompt_container' )));
8+ final floatingButton = await getNativeView ($,
9+ android: 'instabug_main_prompt_container' ,
10+ ios: 'IBGReportBugPromptOptionAccessibilityIdentifier' );
1411
1512 expect (
1613 isAndroid
@@ -115,13 +112,7 @@ void main() {
115112 await $('None' ).scrollTo ().tap ();
116113
117114 await wait (second: 1 );
118- final floatingButton = await $.native2.getNativeViews (NativeSelector (
119- ios:
120- IOSSelector (identifier: 'IBGFloatingButtonAccessibilityIdentifier' ),
121- android: AndroidSelector (
122- resourceName:
123- 'com.instabug.flutter.example:id/instabug_floating_button' ),
124- ));
115+ final floatingButton = await getFAB ($);
125116
126117 expect (
127118 isAndroid
@@ -135,7 +126,8 @@ void main() {
135126
136127 await $('Invoke' ).scrollTo ().tap ();
137128
138- await wait (second: 4 );
129+ await wait (second: 2 );
130+
139131 await assertOptionsPromptIsDisplayed ($);
140132 });
141133
@@ -182,13 +174,7 @@ void main() {
182174
183175 await wait (second: 5 );
184176
185- final floatingButton = await $.native2.getNativeViews (NativeSelector (
186- ios:
187- IOSSelector (identifier: 'IBGFloatingButtonAccessibilityIdentifier' ),
188- android: AndroidSelector (
189- resourceName:
190- 'com.instabug.flutter.example:id/instabug_floating_button' ),
191- ));
177+ final floatingButton = await getFAB ($);
192178
193179 await wait (second: 2 );
194180
0 commit comments