Exemple #1
0
        public void Can_SearchAndBook_SingleRoom_Child_Destination_Palma_De_Mallorca_Mallorca_AdultsOnly()
        {
            LoginPage.LoginAs("bijeshb").WithPassword("password").Login();

            Assert.IsTrue(HomePage.IsDisplayed, "Failed to Login.");

            HomePage.SearchDestination("Palma De Mallorca, Mallorca (Majorca), Spain")
            .FromCheckInDate(Calendar.PickRandomCheckInDate()).ToCheckOutDate(Calendar.PickRandomCheckOutDate(1))
            .ForAdults(1).Search();

            Assert.That(AccommodationResultsPage.IsDisplayed, Is.True, "Accommodation results page wasn't available in 40 seconds");

            Assert.That(AccommodationResultsPage.AreResultsDisplayed, Is.True, "No results are available for the accommodation search");

            AccommodationResultsPage.ClickHotelNumber(AccommodationResultPageRnd.PickRandomHotel());

            Assert.That(EstablishmentPage.IsDisplayed, Is.True, "Establishment page wasn't available in 40 seconds");

            EstablishmentPage.RoomSelection().ForRoom(1).SelectRoomNumber(1).Continue();

            Assert.That(PaymentPage.IsDisplayed, Is.True, "Payment page wasn't available in 40 seconds");
        }
Exemple #2
0
        public void Can_SearchAndBook_SingleRoom_Parent_Destination_Algarve_AdultsChildrenAndInfant()
        {
            LoginPage.LoginAs("bijeshb").WithPassword("password").Login();

            Assert.IsTrue(HomePage.IsDisplayed, "Failed to Login.");

            HomePage.SearchDestination("Algarve, Portugal")
            .FromCheckInDate(Calendar.PickRandomCheckInDate()).ToCheckOutDate(Calendar.PickRandomCheckOutDate(3))
            .ForAdults(2).WithChildren(2).OfAges(0, 2).Search();

            Assert.That(AccommodationResultsPage.IsDisplayed, Is.True, "Accommodation results page wasn't available in 40 seconds");

            Assert.That(AccommodationResultsPage.AreResultsDisplayed, Is.True, "No results are available for the accommodation search");

            AccommodationResultsPage.ClickHotelNumber(AccommodationResultPageRnd.PickRandomHotel());

            Assert.That(EstablishmentPage.IsDisplayed, Is.True, "Establishment page wasn't available in 40 seconds");

            EstablishmentPage.RoomSelection().ForRoom(1).SelectRoomNumber(1).Continue();

            Assert.That(PaymentPage.IsDisplayed, Is.True, "Payment page wasn't available in 40 seconds");
        }
Exemple #3
0
        public void Can_SearchAndBook_MultiRoom_Child_Destination_Costa_Adeje_Tenerife_AdultsChildrenAndInfant()
        {
            LoginPage.LoginAs("bijeshb").WithPassword("password").Login();

            Assert.IsTrue(HomePage.IsDisplayed, "Failed to Login.");

            HomePage.SearchDestination("Costa Adeje, Tenerife, Canaries")
            .FromCheckInDate(Calendar.PickRandomCheckInDate()).ToCheckOutDate(Calendar.PickRandomCheckOutDate(10))
            .ForAdults(2).AddAnotherRoom().ForAdults(2).WithChildren(3).OfAges(0, 11, 12).Search();

            Assert.That(AccommodationResultsPage.IsDisplayed, Is.True, "Accommodation results page wasn't available in 40 seconds");

            Assert.That(AccommodationResultsPage.AreResultsDisplayed, Is.True, "No results are available for the accommodation search");

            AccommodationResultsPage.ClickHotelNumber(AccommodationResultPageRnd.PickRandomHotel());

            Assert.That(EstablishmentPage.IsDisplayed, Is.True, "Establishment page wasn't available in 40 seconds");

            EstablishmentPage.RoomSelection().ForRoom(1).SelectRoomNumber(1).ForRoom(2).SelectRoomNumber(1).Continue();

            Assert.That(PaymentPage.IsDisplayed, Is.True, "Payment page wasn't available in 40 seconds");
        }