public void AddBooking_AddBookingWithCorrectData_CheckBookingData() { _websiteHelper.LogIn(StringHelper.DefaultLogin, StringHelper.DefaultPassword); _websiteHelper.MainMenu.NewBooking.Click(); _websiteHelper.NewBooking.CreateBooking(new BookingInfo { StartDate = "2020-10-10", StartTime = "10:00", EndDate = "2020-10-10", EndTime = "11:30", Comment = StringHelper.Comment }); _websiteHelper.MainMenu.Bookings.Click(); var rowData = _websiteHelper.Bookings.GetRowData(_websiteHelper.Bookings.LastRow); Assert.AreEqual(StringHelper.Room421N, rowData.RoomName); Assert.AreEqual(StringHelper.LastName, rowData.LastName); Assert.AreEqual(StringHelper.FirstName, rowData.FirstName); Assert.AreEqual(StringHelper.Contact, rowData.Contact); Assert.AreEqual(StringHelper.StartTime, rowData.StartTime); Assert.AreEqual(StringHelper.EndTime, rowData.EndTime); Assert.AreEqual(StringHelper.Comment, rowData.Comment); rowData.BtnDelete.Click(); _websiteHelper.LogOut(); }
public void LoggingOut_ClickLogOutOnMenu_UserLoggedOut() { _websiteHelper.LogIn(StringHelper.DefaultLogin, StringHelper.DefaultPassword); _websiteHelper.LogOut(); Assert.AreEqual(_driver.Url, StringHelper.LogOutPageUrl); }