public IEnumerator SignUpPasses() { // Use the Assert class to test conditions. // Use yield to skip a frame. Debug.Log(loginAndSignUp); loginAndSignUp.signUpEmailInput.text = "*****@*****.**"; loginAndSignUp.signUpPasswordInput.text = "1234"; loginAndSignUp.signUpRenterPasswordInput.text = "1234"; loginAndSignUp.signUpUserNameInput.text = "testuser"; loginAndSignUp.RequestSignUp(); yield return(new WaitForSeconds(2f)); yield return(null); }
public IEnumerator LoginPasses() { // Use the Assert class to test conditions. // Use yield to skip a frame. loginAndSignUp.signUpEmailInput.text = "*****@*****.**"; loginAndSignUp.signUpPasswordInput.text = "1234"; loginAndSignUp.signUpRenterPasswordInput.text = "1234"; loginAndSignUp.signUpUserNameInput.text = "testuser"; loginAndSignUp.RequestSignUp(); yield return(new WaitForSeconds(2f)); loginAndSignUp.loginEmailInput.text = "*****@*****.**"; loginAndSignUp.loginPasswordInput.text = "1234"; loginAndSignUp.RequestLogin(); yield return(new WaitForSeconds(2f)); Assert.IsNotNull(WebReq.bearerToken); Assert.IsNotNull(WebReq.email); //Assert.IsNull(loginAndSignUp); yield return(null); }