'Scenario: Given I have a library, a course and library content xblock in a course
When I go to studio unit page for library content block
And I edit library content metadata and save it
Then I can ensure that data is persisted'

@ddt.data(1, 2, 3)
def test_can_edit_metadata(self, max_count):

    library_name = self.library_info['display_name']
    library_container = self._get_library_xblock_wrapper(self.unit_page.xblocks[1])
    library_container.edit()
    edit_modal = StudioLibraryContentEditor(self.browser, library_container.locator)
    edit_modal.library_name = library_name
    edit_modal.count = max_count
    library_container.save_settings()
    library_container.edit()
    edit_modal = StudioLibraryContentEditor(self.browser, library_container.locator)
    self.assertEqual(edit_modal.library_name, library_name)
    self.assertEqual(edit_modal.count, max_count)
