'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 to select "No Library"
Then I can see that library content block is misconfigured'

def test_no_library_shows_library_not_configured(self):

    expected_text = 'A    library    has    not    yet    been    selected.'
    expected_action = 'Select    a    Library'
    library_container = self._get_library_xblock_wrapper(self.unit_page.xblocks[1])
    self.assertFalse(library_container.has_validation_not_configured_warning)
    library_container.edit()
    edit_modal = StudioLibraryContentEditor(self.browser, library_container.locator)
    edit_modal.library_name = 'No    Library    Selected'
    library_container.save_settings()
    self.assertTrue(library_container.has_validation_not_configured_warning)
    self.assertIn(expected_text, library_container.validation_not_configured_warning_text)
    self.assertIn(expected_action, library_container.validation_not_configured_warning_text)
