コード例 #1
0
ファイル: TestLufthansa.py プロジェクト: flavia-c/Lufthansa
    def test_blank_fields(self, setup):
        home_page = HomePage(setup)
        car_page = home_page.select_rental_car()
        car_page.click_submit(False)

        assert car_page.get_pickup_location_error(
        ) == self.__PICKUP_LOCATION_ERROR
        assert car_page.get_pickup_date_error() == self.__PICKUP_DATE_ERROR
        assert car_page.get_dropoff_location_error(
        ) == self.__DROPOFF_LOCATION_ERROR
        assert car_page.get_dropoff_date_error() == self.__DROPOFF_DATE_ERROR
コード例 #2
0
ファイル: TestLufthansa.py プロジェクト: flavia-c/Lufthansa
    def test_more_options(self, setup):
        home_page = HomePage(setup)
        car_page = home_page.select_rental_car()
        more_options = car_page.more_options()

        assert more_options.get_page_title() == self.__MORE_OPTIONS_TITLE