'Scenario: A bookmarks list is shown if there are bookmarked units.
Given that I am a registered user
And I have bookmarked 2 units
And I visit my bookmarks page
Then I should see a bookmarked list with 2 bookmark links
And breadcrumb trail is correct for a bookmark
When I click on bookmarked link
Then I can navigate to correct bookmarked unit'

def test_bookmarks_list(self):

    self.setup_test()
    self.bookmark_units(2)
    self.bookmarks_page.visit()
    self._verify_breadcrumbs(num_units=2)
    self._verify_pagination_info(bookmark_count_on_current_page=2, header_text='Showing    1-2    out    of    2    total', previous_button_enabled=False, next_button_enabled=False, current_page_number=1, total_pages=1)
    xblocks = self.course_fixture.get_nested_xblocks(category='vertical')
    xblock_usage_ids = [xblock.locator for xblock in xblocks]
    for index in range(2):
        self.bookmarks_page.visit()
        self.bookmarks_page.click_bookmarked_block(index)
        self.courseware_page.wait_for_page()
        self.assertIn(self.courseware_page.active_usage_id(), xblock_usage_ids)
