mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
test: improve condition checking in LoginLogoutTest
This commit is contained in:
committed by
alexiscatnip
parent
fcbc17dd87
commit
79b843b699
@@ -92,10 +92,8 @@ namespace Raindrop.Tests.RaindropFullIntegrationTests.InputSubroutines
|
||||
$"the message is {instance.Client.Network.LoginMessage}, " +
|
||||
$"status code {instance.Client.Network.LoginStatusCode}");
|
||||
|
||||
//assert the backend API; that we are logged in.
|
||||
Assert.True(
|
||||
instance.Client.Network.Connected == true,
|
||||
"checked API, we are not logged in.");
|
||||
Debug.Log("Waiting for login to complete... ");
|
||||
yield return new WaitUntil(() => instance.Client.Network.Connected == true);
|
||||
|
||||
//finally, disconnect. assert disconnected.
|
||||
UIHelpers.Click_ButtonByUnityName("LogoutBtn");
|
||||
|
||||
Reference in New Issue
Block a user