public void student_can_visualize_his_personal_information() { //Arrange var student = TestData.SubscribedStudent1; //Act EditStudentPage.GoTo(); //Assert EditStudentPage.Student.Identifier.ShouldBeEquivalentTo(student.Identifier); EditStudentPage.Student.PhoneNumber.ShouldBeEquivalentTo(student.PhoneNumber); }
public void student_can_edit_his_password() { //Arrange var student = TestData.SubscribedStudent1; //Act EditStudentPage.GoTo(); EditStudentPage.ModifyStudentPasswordWith(student, TestData.Employee2.Password); PageNavigator.AllUsers.Logout.Select(); LoginPage.GoTo(); LoginPage.LoginAs(student); }
public void student_can_edit_his_profile() { //Arrange var student = TestData.SubscribedStudent1; //Act EditStudentPage.GoTo(); EditStudentPage.ModifyStudentProfileWith(student); EditStudentPage.GoTo(); //Assert EditStudentPage.Student.Identifier.ShouldBeEquivalentTo(student.Identifier); EditStudentPage.Student.PhoneNumber.ShouldBeEquivalentTo(student.PhoneNumber); }
public void student_edit_should_update_his_profil_if_id_is_valid() { const string NEW_TELEPHONE = "444-444-4444"; const string OLD_PASSWORD = "******"; const string NEW_PASSWORD = "******"; LoginPage.GoTo(); LoginPage.LoginAs(StudentUsername, StudentPassword); EditStudentPage.GoTo(); EditStudentPage.EditAStudent(NEW_TELEPHONE, OLD_PASSWORD, NEW_PASSWORD); IndexStudentPage.IsDisplayed.Should().BeTrue(); EditStudentPage.EditVerification(NEW_TELEPHONE).Should().BeTrue(); }
private void EditStudent(object sender, RoutedEventArgs e) { Student student = this.StudentsGrid.CurrentCell.Item as Student; if (student == null) { MessageBox.Show("There is no student to edit."); return; } EditStudentPage esp = new EditStudentPage(student, this.StudentsGrid); esp.Show(); }
public void Can_Edit_Student() { string format = @"yyyy-MM-dd"; var name = "EditedStud"; var FirstName = "Ivan"; var date = DateTime.Now; NewStudentPage.GoTo(); NewStudentPage.CreateStudent("TestStud", "John", date); EditStudentPage.GoTo(); EditStudentPage.EditStudent(name) .WithFirstName(FirstName) .WithStartDate(date) .Create(); Assert.IsTrue(NewStudentPage.DoesElementExistWithData(name + ' ' + FirstName + ' ' + date.ToString(format))); }
public void student_should_not_be_able_to_edit_his_profil_if_not_logged_in() { EditStudentPage.GoToByUrl(); LoginPage.IsDisplayed.Should().BeTrue(); }