Ejemplo n.º 1
0
 public void SearchWithoutCityOfArrivalTest()
 {
     MakeScreenshotWhenFail(() =>
     {
         Pages.MainPage mainPage = new Pages.MainPage(DriverSingleton.GetDriver())
                                   .OpenPage()
                                   .ChooseArrivalCity(RouteCreator.EmptyArrivalCity())
                                   .ClickSearchButton();
         Assert.AreEqual("Please enter origin city", mainPage.GetTextError());
     });
 }
Ejemplo n.º 2
0
 public void SearchForIdenticalCitiesTest()
 {
     MakeScreenshotWhenFail(() =>
     {
         Pages.MainPage mainPage = new Pages.MainPage(DriverSingleton.GetDriver())
                                   .OpenPage()
                                   .ChooseArrivalCity(RouteCreator.WithAllProperties())
                                   .ChooseDepartureCity(RouteCreator.WithAllProperties())
                                   .ClickSearchButton();
         Assert.AreEqual("Source and Destination can not be same", mainPage.GetTextError());
     });
 }