'Scenario: User can toggle notes visibility.
Given I have a course with components with notes
And I open the unit with annotatable components
When I click on "Show notes" checkbox
Then I do not see any notes on the sequential position
When I click on "Show notes" checkbox again
Then I see that all notes appear
When I change sequential position to "2"
Then I still can see all notes on the sequential position
When I go to "Test Subsection 2" subsection
Then I can see all notes on the subsection'

def test_can_reenable_all_notes(self):

    self.note_unit_page.toggle_visibility()
    self.assertEqual(len(self.note_unit_page.notes), 0)
    self.note_unit_page.toggle_visibility()
    self.assertGreater(len(self.note_unit_page.notes), 0)
    self.courseware_page.go_to_sequential_position(2)
    self.assertGreater(len(self.note_unit_page.notes), 0)
    self.course_home_page.visit()
    self.course_home_page.outline.go_to_section(u'Test    Section    1', u'Test    Subsection    2')
    self.assertGreater(len(self.note_unit_page.notes), 0)
