From 6f50c911a7de7dc5a394e72b510f52a5548f524e Mon Sep 17 00:00:00 2001 From: keiff3r Date: Mon, 9 Dec 2024 15:36:24 +0100 Subject: [PATCH] feat(utlis): add missing component to navigate_until_text_and_compare --- tests/utils.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 5714c786..4f5488b3 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -62,6 +62,8 @@ def navigate_until_text_and_compare( text: The text string to search for on device screens screenshot_path: Path where screenshot comparison files will be saved test_name: The name of the test that is being run + screen_change_before_first_instruction: Whether to wait for screen change before first instruction + screen_change_after_last_instruction: Whether to wait for screen change after last instruction Returns: None @@ -81,7 +83,14 @@ def navigate_until_text_and_compare( confirm_instructions = [NavInsID.BOTH_CLICK] navigator.navigate_until_text_and_compare( - go_right_instruction, confirm_instructions, text, screenshot_path, test_name + go_right_instruction, + confirm_instructions, + text, + screenshot_path, + test_name, + 300, + screen_change_before_first_instruction, + screen_change_after_last_instruction, )