'Scenario: User can create notes.
Given I have a course with 3 annotatable components
And I open the unit with 2 annotatable components
When I add 2 notes for the first component and 1 note for the second
Then I see that notes were correctly created
When I change sequential position to "2"
And I add note for the annotatable component on the page
Then I see that note was correctly created
When I refresh the page
Then I see that note was correctly stored
When I change sequential position to "1"
Then I see that notes were correctly stored on the page'

def test_can_create_notes(self):

    self.note_unit_page.visit()
    components = self.note_unit_page.components
    self.create_notes(components)
    self.assert_text_in_notes(self.note_unit_page.notes)
    self.courseware_page.go_to_sequential_position(2)
    components = self.note_unit_page.components
    self.create_notes(components)
    components = self.note_unit_page.refresh()
    self.assert_text_in_notes(self.note_unit_page.notes)
    self.courseware_page.go_to_sequential_position(1)
    components = self.note_unit_page.components
    self.assert_text_in_notes(self.note_unit_page.notes)
