@markers.webview
@markers.requires_complete_dataset
@markers.test_case('C195065')
@markers.nondestructive
@markers.parametrize('page_id', ['HOATLqlR@5'])
def test_books_containing_list_in_sorted_order(webview_base_url, selenium, page_id):
    content = Content(selenium, webview_base_url, id=page_id).open()
    main_author = content.content_header.authors
    content = ContentPage(selenium, webview_base_url, id=page_id).open()
    dates = content.books_containing.date_list
    author = content.books_containing.author_list
    assert (author[0][0] == main_author)
    i = 1
    while ((i < (len(author) - 1)) and (author[i][0] == main_author)):
        i += 1
    date_list = []
    for date in dates[i:]:
        date_list.append(datetime.strptime(date[0], '%b %d, %Y'))
    assert (date_list == sorted(date_list, reverse=True))
@markers.webview
@markers.requires_complete_dataset
@markers.test_case('C195065')
@markers.nondestructive
@markers.parametrize('page_id', ['HOATLqlR@5'])
def test_books_containing_list_in_sorted_order(webview_base_url, selenium, page_id):
    content = Content(selenium, webview_base_url, id=page_id).open()
    main_author = content.content_header.authors
    content = ContentPage(selenium, webview_base_url, id=page_id).open()
    dates = content.books_containing.date_list
    author = content.books_containing.author_list
    assert (author[0][0] == main_author)
    i = 1
    while ((i < (len(author) - 1)) and (author[i][0] == main_author)):
        i += 1
    date_list = []
    for date in dates[i:]:
        date_list.append(datetime.strptime(date[0], '%b %d, %Y'))
    assert (date_list == sorted(date_list, reverse=True))