'Scenario: a user of notes can edit tags on notes
Given I have a course with 3 components with notes
When I open the unit with 2 annotatable components
And I edit tags on the notes for the 2 annotatable components
Then I see that the tags were correctly changed
And I again edit tags on the notes for the 2 annotatable components
And I refresh the page
Then I see that the tags were correctly changed'

def test_can_change_tags(self):

    self._add_notes()
    self.note_unit_page.visit()
    components = self.note_unit_page.components
    self.edit_tags_in_notes(components, [['hard'], ['apple', 'pear']])
    self.assert_tags_in_notes(self.note_unit_page.notes, [['hard'], ['apple', 'pear']])
    self.edit_tags_in_notes(components, [[], ['avocado']])
    self.assert_tags_in_notes(self.note_unit_page.notes, [[], ['avocado']])
    self.note_unit_page.refresh()
    self.assert_tags_in_notes(self.note_unit_page.notes, [[], ['avocado']])
