Exemplo n.º 1
0
        public void OneTimeSetupCreateSprint()
        {
            _guid = Guid.NewGuid().ToString().Substring(0, 8);

            _userDashboardPage    = new UserDashboardPage(MainWindow);
            _projectDashboardPage = new ProjectDashboardPage(MainWindow);
            _manageSprintsPage    = new ManageSprintsPage(MainWindow);
            _createSprintPage     = new CreateSprintPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            _userDashboardPage.GetProjectListItem("e2eProjectName1").Click();
            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());

            _projectDashboardPage.ManageSprintsButton.Click();

            var messageBox = MessageBoxUtil.GetInfoMessageBox(MainWindow);

            Assert.NotNull(messageBox);
            MessageBoxUtil.ClickOKButton(messageBox);

            Assert.IsTrue(_manageSprintsPage.IsCurrentPage());

            _manageSprintsPage.CreateSprintButton.Click();
            Assert.IsTrue(_createSprintPage.IsCurrentPage());
        }
        public void OneTimeSetupCreateSprint()
        {
            _userDashboardPage    = new UserDashboardPage(MainWindow);
            _projectDashboardPage = new ProjectDashboardPage(MainWindow);
            _manageSprintsPage    = new ManageSprintsPage(MainWindow);
            _createSprintPage     = new CreateSprintPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            _userDashboardPage.GetProjectListItem("e2eProjectName1").Click();
            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());

            _projectDashboardPage.ManageSprintsButton.Click();

            var messageBox = MessageBoxUtil.GetInfoMessageBox(MainWindow);

            Assert.NotNull(messageBox);
            MessageBoxUtil.ClickOKButton(messageBox);

            Assert.IsTrue(_manageSprintsPage.IsCurrentPage());

            _manageSprintsPage.CreateSprintButton.Click();
            Assert.IsTrue(_createSprintPage.IsCurrentPage());

            EnterValidCredentials();

            _createSprintPage.CreateButton.Click();

            var messageBox1 = MessageBoxUtil.GetSuccessMessageBox(MainWindow);

            Assert.NotNull(messageBox1);

            MessageBoxUtil.ClickOKButton(messageBox1);

            Assert.IsTrue(_manageSprintsPage.IsCurrentPage());
        }