From 597678bc509559d4fda6297d7c9803204ad4cd0a Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Mon, 2 Dec 2024 14:26:47 +1300 Subject: [PATCH] test: comment out register off chain --- sample/Tests/test/test.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/sample/Tests/test/test.py b/sample/Tests/test/test.py index 284c6498..c4659a9b 100644 --- a/sample/Tests/test/test.py +++ b/sample/Tests/test/test.py @@ -79,20 +79,20 @@ def test_2_imx_functions(self): # Register off-chain # Wait up to 3 times for "Passport account already registered" to appear - attempts = 0 - while attempts < 3: - self.altdriver.find_object(By.NAME, "RegisterOffchainBtn").tap() - self.assertEqual("Registering off-chain...", output.get_text()) - time.sleep(20) - if "Passport account already registered" in output.get_text(): - break - attempts += 1 - - # Assert that the desired text is found after waiting - self.assertTrue( - "Passport account already registered" in output.get_text(), - f"Expected 'Passport account already registered' not found. Actual output: '{output.get_text()}'" - ) +# attempts = 0 +# while attempts < 3: +# self.altdriver.find_object(By.NAME, "RegisterOffchainBtn").tap() +# self.assertEqual("Registering off-chain...", output.get_text()) +# time.sleep(20) +# if "Passport account already registered" in output.get_text(): +# break +# attempts += 1 +# +# # Assert that the desired text is found after waiting +# self.assertTrue( +# "Passport account already registered" in output.get_text(), +# f"Expected 'Passport account already registered' not found. Actual output: '{output.get_text()}'" +# ) # Get address self.altdriver.find_object(By.NAME, "GetAddressBtn").tap()