'Scenario: Verify deprecation warning message if deprecated modules
and components are present.
Given I have "poll" advance modules present in `Advanced Module List`
And I have created 2 poll components
When I go to course outline
Then I see poll deprecated warning
And I see correct poll deprecated warning heading text
And I see correct poll deprecated warning advance modules remove text
And I see list of poll components with correct display names'

def test_deprecation_warning_message_present(self):

    self._add_deprecated_advance_modules(block_types=['poll', 'survey'])
    self._create_deprecated_components()
    self.course_outline_page.visit()
    self._verify_deprecation_warning_info(deprecated_blocks_present=True, components_present=True, components_display_name_list=['Poll', 'Survey'], deprecated_modules_list=['poll', 'survey'])
