@markers.webview
@markers.test_case('C176232', 'C176233')
@markers.nondestructive
def test_navs_and_elements_are_displayed(webview_base_url, selenium):
    home = Home(selenium, webview_base_url).open()
    book = home.featured_books.openstax_list[59]
    content = book.click_book_cover()
    assert content.header.is_nav_displayed
    content_header = content.content_header
    assert content_header.is_displayed
    assert content_header.is_title_displayed
    assert content_header.is_book_by_displayed
    assert content_header.is_share_displayed
    header_nav = content_header.nav
    assert header_nav.is_contents_button_displayed
    assert header_nav.is_searchbar_displayed
    assert header_nav.is_back_link_displayed
    assert header_nav.is_progress_bar_displayed
    assert header_nav.is_next_link_displayed
    assert content.is_section_title_displayed
    main_content_section = content.main_content_section
    section_title_div_location = content.section_title_div_location
    section_title_div_size = content.section_title_div_size
    assert (section_title_div_location['x'] >= main_content_section.location['x'])
    assert (section_title_div_location['y'] >= main_content_section.location['y'])
    assert ((section_title_div_location['x'] + section_title_div_size['width']) <= (main_content_section.location['x'] + main_content_section.size['width']))
    assert ((section_title_div_location['y'] + section_title_div_size['height']) <= (main_content_section.location['y'] + main_content_section.size['height']))
    assert ((section_title_div_location['y'] - main_content_section.location['y']) <= section_title_div_size['height'])
@markers.webview
@markers.test_case('C176232', 'C176233')
@markers.nondestructive
def test_navs_and_elements_are_displayed(webview_base_url, selenium):
    home = Home(selenium, webview_base_url).open()
    book = home.featured_books.openstax_list[59]
    content = book.click_book_cover()
    assert content.header.is_nav_displayed
    content_header = content.content_header
    assert content_header.is_displayed
    assert content_header.is_title_displayed
    assert content_header.is_book_by_displayed
    assert content_header.is_share_displayed
    header_nav = content_header.nav
    assert header_nav.is_contents_button_displayed
    assert header_nav.is_searchbar_displayed
    assert header_nav.is_back_link_displayed
    assert header_nav.is_progress_bar_displayed
    assert header_nav.is_next_link_displayed
    assert content.is_section_title_displayed
    main_content_section = content.main_content_section
    section_title_div_location = content.section_title_div_location
    section_title_div_size = content.section_title_div_size
    assert (section_title_div_location['x'] >= main_content_section.location['x'])
    assert (section_title_div_location['y'] >= main_content_section.location['y'])
    assert ((section_title_div_location['x'] + section_title_div_size['width']) <= (main_content_section.location['x'] + main_content_section.size['width']))
    assert ((section_title_div_location['y'] + section_title_div_size['height']) <= (main_content_section.location['y'] + main_content_section.size['height']))
    assert ((section_title_div_location['y'] - main_content_section.location['y']) <= section_title_div_size['height'])