Skip to content

Commit

Permalink
test: close sample app at the end of ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Nov 19, 2024
1 parent f5ea8ba commit 5a8ab90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sample/Tests/test/test_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions sample/Tests/test/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions sample/Tests/test/test_windows_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down

0 comments on commit 5a8ab90

Please sign in to comment.