@markers.webview
@markers.smoke
@markers.requires_complete_dataset
@markers.test_case('C195055')
@markers.nondestructive
@markers.parametrize('page_id', ['4fGVMb7P@1'])
def test_books_containing_button_toggles_and_labelled_books(webview_base_url, selenium, page_id):
    content = ContentPage(selenium, webview_base_url, id=page_id).open()
    books_containing = content.books_containing
    contents_button = content.header_nav.contents_button
    assert (contents_button.text == 'Books')
    assert books_containing.is_displayed
    content.header_nav.click_contents_button()
    assert (not books_containing.is_displayed)
    content.header_nav.click_contents_button()
    content.books_containing.wait_for_region_to_display()
    assert books_containing.is_displayed
@markers.webview
@markers.smoke
@markers.requires_complete_dataset
@markers.test_case('C195055')
@markers.nondestructive
@markers.parametrize('page_id', ['4fGVMb7P@1'])
def test_books_containing_button_toggles_and_labelled_books(webview_base_url, selenium, page_id):
    content = ContentPage(selenium, webview_base_url, id=page_id).open()
    books_containing = content.books_containing
    contents_button = content.header_nav.contents_button
    assert (contents_button.text == 'Books')
    assert books_containing.is_displayed
    content.header_nav.click_contents_button()
    assert (not books_containing.is_displayed)
    content.header_nav.click_contents_button()
    content.books_containing.wait_for_region_to_display()
    assert books_containing.is_displayed