Пример #1
0
        public IEnumerator UploadPass()
        {
            loginAndSignUp.loginEmailInput.text    = "*****@*****.**";
            loginAndSignUp.loginPasswordInput.text = "1234";
            loginAndSignUp.RequestLogin();

            yield return(new WaitForSeconds(2f));

            upload.folderNameTextBox.text  = "mod5";
            upload.uploadTitleTextBox.text = "UploadTest";
            upload.Uploadfiles();
            yield return(new WaitForSeconds(2f));

            //Assert.IsTrue(upload.overwriteConfirmPanel.activeSelf);
            yield return(null);
        }
        public IEnumerator FilePagePasses()
        {
            // Use the Assert class to test conditions.
            // Use yield to skip a frame.

            loginAndSignUp.loginEmailInput.text    = "*****@*****.**";
            loginAndSignUp.loginPasswordInput.text = "12";
            loginAndSignUp.RequestLogin();

            yield return(new WaitForSeconds(2f));

            filePage.Init(WebReq.email);

            yield return(new WaitForSeconds(2f));

            yield return(null);
        }
Пример #3
0
        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);
        }