Ejemplo n.º 1
0
def test_should_be_departure_header(browser, link):
    link_dep = urljoin(link, "/departure/msk")
    page = DeparturePage(browser, link_dep)
    page.open()
    header_text = page.get_header_text()
    data = Data()
    header_departure = data.get_departure('msk')
    expected_text = f'Летим {header_departure}'
    page.should_be_exact_text(expected_text.lower(), header_text.lower())
Ejemplo n.º 2
0
def test_tour_general_info(browser, link):
    link_tour = urljoin(link, "/tour/4")
    page = TourPage(browser, link_tour)
    page.open()
    data = Data()
    tour_page_title_text = page.get_tour_description_text()

    tour_description_text = f'{data.get_tour_duration_of_stay(id=4)} Ночей'
    page.should_be_exact_text(tour_description_text.lower(),
                              tour_page_title_text.lower())

    tour_page_title = data.get_departure(departure='msk')
    page.should_be_exact_text(tour_page_title.lower(),
                              tour_page_title_text.lower())