'Scenario: Verify deprecation warning message if poll components are present.
Given I have created 1 poll deprecated component
When I go to course outline
Then I see poll deprecated warning
And I see correct poll deprecated warning heading text
And I see list of poll components with correct message'

def test_deprecation_warning_with_no_displayname(self):

    parent_vertical = self.course_fixture.get_nested_xblocks(category='vertical')[0]
    self.course_fixture.create_xblock(parent_vertical.locator, XBlockFixtureDesc(category='poll', display_name='', data=load_data_str('poll_markdown.xml')))
    self.course_outline_page.visit()
    self._verify_deprecation_warning_info(deprecated_blocks_present=False, components_present=True, components_display_name_list=[self.DEFAULT_DISPLAYNAME])
