Skip to content

Commit 2d85bd8

Browse files
committed
[green] align Android publication interaction gate
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th>
1 parent a5b014a commit 2d85bd8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎tests/publication/test_ci_contract.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ def test_android_blockly_smoke_reveals_ime_occluded_actions(self) -> None:
345345
tap_visible = suite[tap_visible_start:tap_visible_end]
346346
preview_snippets = (
347347
"FocusManager.instance.primaryFocus?.unfocus();",
348+
"tester.binding.focusedEditable = null;",
348349
"SystemChannels.textInput.invokeMethod<void>('TextInput.hide');",
349350
"await tester.ensureVisible(finder);",
350351
"expect(finder.hitTestable(), findsOneWidget);",
@@ -360,9 +361,11 @@ def test_android_blockly_smoke_reveals_ime_occluded_actions(self) -> None:
360361
preview_positions.append(tap_visible.index(snippet))
361362
self.assertEqual(preview_positions, sorted(preview_positions))
362363

364+
stable_field = suite.index(
365+
"final Finder ledGpioField = find.byKey(ledGpioFieldKey!);"
366+
)
363367
enter_gpio = suite.index(
364-
"await tester.enterText("
365-
"find.widgetWithText(TextField, 'LED GPIO'), '17');"
368+
"await tester.enterText(ledGpioField, '17');", stable_field
366369
)
367370
required_snippets = (
368371
"final Finder replaceWorkspaceAction = find.byKey(",

0 commit comments

Comments
 (0)