Esempio n. 1
0
        public void CreateFileTest()
        {
            new StartForm().OpenSignInPage();
            new SignInForm().SingIn(Configuration.GetUserLogin(), Configuration.GetPassword());
            new LoggedInStartForm().OpenRepository(RepositoryName);

            RepositoryStartForm reposForm = new RepositoryStartForm();

            reposForm.OpenCreateFilePage();

            CreateFileForm createForm = new CreateFileForm();

            createForm.CreateFile(FileName);
            reposForm.VerifyFileIsCreated(FileName);
            reposForm.OpenCreateFilePage();
            createForm.CreateFile(FileName);
            createForm.VerifyExceptionIsPresent();
        }
Esempio n. 2
0
        public void MergeBranchTest(string fileName)
        {
            new StartForm().OpenSignInPage();
            new SignInForm().SingIn(Configuration.GetUserLogin(), Configuration.GetPassword());
            new LoggedInStartForm().OpenRepository(RepositoryName);

            RepositoryStartForm reposForm = new RepositoryStartForm();

            reposForm.CreateBranch(BranchName);
            reposForm.OpenCreateFilePage();

            CreateFileForm createForm = new CreateFileForm();

            createForm.CreateFile(fileName);
            reposForm.OpenPullRequestForm();
            new PullRequestForm().CreatePullRequest();
            MergePullRequestForm mergeForm = new MergePullRequestForm();

            mergeForm.MergePullRequest();
            mergeForm.VerifyBranchIsMerged();
        }