@markers.webview
@markers.test_case('C176242')
@markers.nondestructive
def test_toc_is_displayed(webview_base_url, selenium):
    home = Home(selenium, webview_base_url).open()
    book = home.featured_books.openstax_list[59]
    content = book.click_book_cover()
    content.header_nav.click_contents_button()
    toc = content.table_of_contents
    assert toc.is_displayed
    assert (toc.number_of_chapters > 0)
    assert (toc.number_of_pages > 0)
@markers.webview
@markers.test_case('C176242')
@markers.nondestructive
def test_toc_is_displayed(webview_base_url, selenium):
    home = Home(selenium, webview_base_url).open()
    book = home.featured_books.openstax_list[59]
    content = book.click_book_cover()
    content.header_nav.click_contents_button()
    toc = content.table_of_contents
    assert toc.is_displayed
    assert (toc.number_of_chapters > 0)
    assert (toc.number_of_pages > 0)