From 5a8ab909c66aeb6346e0721ff7634046aef2ff6a Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Wed, 20 Nov 2024 11:23:26 +1300 Subject: [PATCH] test: close sample app at the end of ui tests --- sample/Tests/test/test_mac.py | 2 +- sample/Tests/test/test_windows.py | 4 ++-- sample/Tests/test/test_windows_helpers.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sample/Tests/test/test_mac.py b/sample/Tests/test/test_mac.py index ece728e0..f0da1806 100644 --- a/sample/Tests/test/test_mac.py +++ b/sample/Tests/test/test_mac.py @@ -13,11 +13,11 @@ class MacTest(UnityTest): @classmethod def setUpClass(cls): open_sample_app - cls.altdriver = AltDriver() @classmethod def tearDownClass(cls): + stop_sample_app() cls.altdriver.stop() def test_1_device_code_login(self): diff --git a/sample/Tests/test/test_windows.py b/sample/Tests/test/test_windows.py index d07cf3eb..93893017 100644 --- a/sample/Tests/test/test_windows.py +++ b/sample/Tests/test/test_windows.py @@ -12,12 +12,12 @@ class WindowsTest(UnityTest): @classmethod def setUpClass(cls): open_sample_app() - cls.altdriver = AltDriver() @classmethod def tearDownClass(cls): - cls.altdriver.stop() + cls.altdriver.stop() + stop_sample_app() def test_1_device_code_login(self): launch_chrome() diff --git a/sample/Tests/test/test_windows_helpers.py b/sample/Tests/test/test_windows_helpers.py index 269b645e..d35e68dd 100644 --- a/sample/Tests/test/test_windows_helpers.py +++ b/sample/Tests/test/test_windows_helpers.py @@ -54,12 +54,12 @@ def login(): print("Wait for OTP...") time.sleep(10) - print("Get OTP from Gmail...") + print("Get OTP from MailSlurp...") code = fetch_code() if code: print(f"Successfully fetched OTP: {code}") else: - print("Failed to fetch OTP from Gmail") + print("Failed to fetch OTP from MailSlurp") driver.quit() print("Find OTP input...")