Example #1
0
        public void employee_should_visualize_personal_information()
        {
            //Arrange
            var employee = TestData.Employee1;

            //Act
            EditEmployeePage.GoTo();

            //Assert
            EditEmployeePage.FirstEmployee.Identifier.ShouldBeEquivalentTo(employee.Identifier);
            EditEmployeePage.FirstEmployee.PhoneNumber.ShouldBeEquivalentTo(employee.PhoneNumber);
            EditEmployeePage.FirstEmployee.ExtensionNumber.ShouldBeEquivalentTo(employee.ExtensionNumber);
        }
Example #2
0
        public void employee_can_edit_his_profile()
        {
            //Arrange
            var employee = TestData.Employee1;

            //Act
            EditEmployeePage.GoTo();
            EditEmployeePage.ModifyEmployeeProfileWith(employee);
            EditEmployeePage.GoTo();

            //Assert
            EditEmployeePage.FirstEmployee.Identifier.ShouldBeEquivalentTo(employee.Identifier);
            EditEmployeePage.FirstEmployee.PhoneNumber.ShouldBeEquivalentTo(employee.PhoneNumber);
            EditEmployeePage.FirstEmployee.ExtensionNumber.ShouldBeEquivalentTo(employee.ExtensionNumber);
        }
Example #3
0
        public void employee_can_edit_his_password()
        {
            //Arrange
            const string NEW_PASSWORD = "******";
            var          currentUser  = TestData.Employee1;

            currentUser.Password = NEW_PASSWORD;

            //Act
            EditEmployeePage.GoTo();
            EditEmployeePage.ModifyEmployeePasswordWith(NEW_PASSWORD, TestData.Employee1.Password);

            PageNavigator.AllUsers.Logout.Select();

            LoginPage.GoTo();
            LoginPage.LoginAs(currentUser);

            //Assert
            HomePage.IsEmployeeLogged.Should().BeTrue();
        }