From 99481a8b25c9fb85f9751f21045b8ad55f8b8ffe Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Mon, 2 Dec 2024 19:28:43 +1300 Subject: [PATCH 1/2] fix: uwb dll platforms --- .../VoltstroStudios.UnityWebBrowser.Shared.dll.meta | 10 +++++----- .../org.nuget.voltrpc@3.2.1/VoltRpc.dll.meta | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/dev.voltstro.unitywebbrowser@2.2.5/Plugins/VoltstroStudios.UnityWebBrowser.Shared.dll.meta b/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/dev.voltstro.unitywebbrowser@2.2.5/Plugins/VoltstroStudios.UnityWebBrowser.Shared.dll.meta index 2de291e3..cb766dfe 100644 --- a/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/dev.voltstro.unitywebbrowser@2.2.5/Plugins/VoltstroStudios.UnityWebBrowser.Shared.dll.meta +++ b/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/dev.voltstro.unitywebbrowser@2.2.5/Plugins/VoltstroStudios.UnityWebBrowser.Shared.dll.meta @@ -16,24 +16,24 @@ PluginImporter: second: enabled: 0 settings: - Exclude Android: 0 + Exclude Android: 1 Exclude Editor: 0 Exclude Linux64: 0 Exclude OSXUniversal: 0 Exclude WebGL: 1 Exclude Win: 0 Exclude Win64: 0 - Exclude iOS: 0 + Exclude iOS: 1 - first: Android: Android second: - enabled: 1 + enabled: 0 settings: CPU: ARMv7 - first: Any: second: - enabled: 1 + enabled: 0 settings: {} - first: Editor: Editor @@ -81,7 +81,7 @@ PluginImporter: - first: iPhone: iOS second: - enabled: 1 + enabled: 0 settings: AddToEmbeddedBinaries: false CPU: AnyCPU diff --git a/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/org.nuget.voltrpc@3.2.1/VoltRpc.dll.meta b/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/org.nuget.voltrpc@3.2.1/VoltRpc.dll.meta index 4b3815e2..5ad7fb33 100644 --- a/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/org.nuget.voltrpc@3.2.1/VoltRpc.dll.meta +++ b/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/org.nuget.voltrpc@3.2.1/VoltRpc.dll.meta @@ -49,7 +49,7 @@ PluginImporter: second: enabled: 1 settings: - CPU: x86_64 + CPU: AnyCPU - first: Standalone: OSXUniversal second: From 139db1564be2c87e8d8df8d46f062b6ac105d0f6 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Mon, 2 Dec 2024 20:00:19 +1300 Subject: [PATCH 2/2] test: add register offchain test case back --- 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 c4659a9b..284c6498 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()