Example #1
0
        public void DeleteWorkShift()
        {
            // Work shift data
            #region
            string shiftName = "Work Shift 1";
            string from      = "08:00";
            string to        = "12:00";
            #endregion

            Home.GoTo();
            Home.LoginAsAdmin();

            // Create a work shift
            Menu.Admin.Job.WorkShifts.GoTo();
            WorkShifts.AddWorkShift(shiftName, from, to);

            //Delete work shift
            Menu.Admin.Job.WorkShifts.GoTo();
            WorkShifts.DeleteWorkShift(shiftName);

            Menu.Admin.Job.WorkShifts.GoTo();
            Assert.IsTrue(WorkShifts.WorkShiftCorrectlyDeleted(shiftName), $"The work shift {shiftName} was not correctly deleted.");

            // Cleanup
            Menu.Admin.Job.WorkShifts.GoTo();
            WorkShifts.DeleteWorkShift(shiftName);

            Home.Logout();
        }