Esempio n. 1
0
        public void CreateNewFile()
        {
            NewRepoPage newRepoPage = new NewRepoPage(DriverInstance.GetInstance());

            if (newRepoPage.CanCreateNewFile())
            {
                newRepoPage.CreateNewFile();
            }

            NewFile newFile = new NewFile(DriverInstance.GetInstance());

            newFile.SetName(RandomGenerator.GetRandomString(NAME_LENGTH));
            newFile.Commit(RandomGenerator.GetRandomString(NAME_LENGTH));
            if (newFile.CanCommit())
            {
                newFile.CommitNewFile();
            }

            Assert.False(newRepoPage.IsExistCreateNewFile());
        }