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()); }
public void ShouldSuccessfullyCreateASprint() { EnterValidCredentials(); string sprintName = _createSprintPage.SprintNameTextBox.Text; _createSprintPage.CreateButton.Click(); var messageBox = MessageBoxUtil.GetSuccessMessageBox(MainWindow); Assert.NotNull(messageBox); MessageBoxUtil.ClickOKButton(messageBox); Assert.IsTrue(_manageSprintsPage.IsCurrentPage()); WPFListItem sprintListItem = _manageSprintsPage.GetSprintListItem(sprintName); Assert.NotNull(sprintListItem); _manageSprintsPage.CreateSprintButton.Click(); }
public void ShouldSuccessfullyDisplayProjectName() { Assert.IsTrue(_manageSprintsPage.IsCurrentPage()); Assert.AreEqual("e2eProjectName1", _manageSprintsPage.ProjectNameTextBlock.Text); }
public void ShouldSuccessfullyNotAllowViewCreateSprintAsNonScrumMaster() { Assert.IsTrue(_manageSprintsPage.IsCurrentPage()); Assert.False(_manageSprintsPage.CreateSprintButton.Visible); }