public void SearchWithEmptyDestinationWithoutGuests() { Driver.Manage().Window.Maximize(); TakeScreenshotWhenTestFailed(() => { HomePage home = new HomePage(Driver); home.GoToPage(); logger.Log("Test- Search with empty destination without guests, time: "); Assert.AreEqual("Пожалуйста, введите место назначения для начала поиска.", home.FindHotelsByDestinationWithoutGuests(InAccessibleDestination.WithWronDestination())); }); }
public void SearchHotelWithWrongDestination() { Driver.Manage().Window.Maximize(); TakeScreenshotWhenTestFailed(() => { HotelsPage hotels = new HotelsPage(Driver); hotels.GoToPage(); logger.Log("Test- Search hotel with wrong destination, time: "); Assert.AreEqual("Dinos qué destino, hotel o punto de referencia estás buscando", hotels.FindHotelsByWrongDestination(InAccessibleDestination.WithWronDestination())); }); }