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 LoggingIn_CorrectLoginAndPassword_UserLoggedIn() { _websiteHelper.LogIn(StringHelper.DefaultLogin, StringHelper.DefaultPassword); Assert.AreEqual(_websiteHelper.LblLoggedInAs.Text, StringHelper.LoggedInAs); Assert.AreEqual(_websiteHelper.LblLoggedInSuccessfully.Text, StringHelper.LoggedInSuccessfully); }