@markers.webview
@markers.smoke
@markers.test_case('C176243', 'C176244')
@markers.nondestructive
def test_toc_navigation(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
    chapter = toc.chapters[0]
    chapter = chapter.click()
    page = chapter.pages[1]
    chapter_section = page.chapter_section
    title = page.title
    content = page.click()
    assert (type(content) is Content)
    assert (content.chapter_section == chapter_section)
    assert (content.section_title == title)
@markers.webview
@markers.smoke
@markers.test_case('C176243', 'C176244')
@markers.nondestructive
def test_toc_navigation(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
    chapter = toc.chapters[0]
    chapter = chapter.click()
    page = chapter.pages[1]
    chapter_section = page.chapter_section
    title = page.title
    content = page.click()
    assert (type(content) is Content)
    assert (content.chapter_section == chapter_section)
    assert (content.section_title == title)