Esempio n. 1
0
        public void ModifyTimeForExistingTimeSheet()
        {
            LoginPage loginpage = new LoginPage(driver);

            loginpage.GoToPage();

            HomePage home     = loginpage.Login("*****@*****.**", "password");
            string   username = home.GetUserNamefromHomePage();

            Assert.AreEqual("Sandhya Ravikumar", username);

            TimeSheetPage timeSheetPage   = home.GoToTimeSheetPage();
            TimeSheet     modifyTimeSheet = timeSheetPage.ModifyTimeSheet("17 May, 2021");
            TimeItem      timeItem        = modifyTimeSheet.ModifyTimeForExistingTimeSheet();

            timeItem.SetTime("Beach", "8");
            modifyTimeSheet.Submit();

            home.Logout();
        }
Esempio n. 2
0
        public void CreatingNewTimeSheet()
        {
            LoginPage loginpage = new LoginPage(driver);

            loginpage.GoToPage();

            HomePage home     = loginpage.Login("*****@*****.**", "password");
            string   username = home.GetUserNamefromHomePage();

            Assert.AreEqual("Sandhya Ravikumar", username);

            TimeSheetPage timeSheetPage = home.GoToTimeSheetPage();
            TimeSheet     newTimeSheet  = timeSheetPage.CreateNewTimeSheet();

            TimeItem timeItem = newTimeSheet.CreateNewTimesheet("14 June, 2021");

            timeItem.SetTime("Beach", "8");
            newTimeSheet.Submit();

            home.Logout();
        }