public void Hotel_Add() { LoginAsAdmin(); Go.To <HotelsPage>(). Add.ClickAndGo(). HotelName.SetRandom(out string name). HotelDescription.SetRandom(out string description). HotelStars.Set(5). HotelType.Set("Villa"). FeaturedFrom.Set("05/01/2019"). FeaturedTo.Set("05/02/2019"). Location.Set("London"). Submit(). Hotels.Rows[x => x.Name == name].Should.BeVisible(); }
public void Hotel_Edit() { LoginAsAdmin(); Go.To <HotelsPage>(). Add.ClickAndGo(). HotelName.SetRandom(out string name). HotelDescription.SetRandom(out string description). HotelStars.Set(3). HotelType.Set("Motel"). FeaturedFrom.Set("06/01/2019"). FeaturedTo.Set("06/02/2019"). Location.Set("London"). Submit(). Hotels.Rows[x => x.Name == name].Edit.ClickAndGo <HotelEditPage>(). Location.Set("Washington"). Submit(). Hotels.Rows[x => x.Name == name].Location.Should.Contain("Washington"); }
public void Hotel_Room_Add() { LoginAsAdmin(); Go.To <HotelsPage>(). Add.ClickAndGo(). HotelName.SetRandom(out string name). HotelDescription.SetRandom(out string description). HotelStars.Set(4). HotelType.Set("Hotel"). FeaturedFrom.Set("07/01/2019"). FeaturedTo.Set("07/02/2019"). Location.Set("Madrid"). Submit(); Go.To <RoomsPage>(). Add.ClickAndGo(). RoomType.Set("Triple Rooms"). Hotel.Set(name). Price.Set(1000). Submit(). Rooms.Rows[x => x.Hotel == name].Hotel.Should.Equal(name). Rooms.Rows[x => x.Hotel == name].Price.Should.Equal("1000"); }