'Scenario: a user of notes can define one with tags
Given I have a course with 3 annotatable components
And I open the unit with 2 annotatable components
When I add a note with tags for the first component
And I refresh the page
Then I see that note was correctly stored with its tags'

@flaky
def test_can_create_note_with_tags(self):

    self.note_unit_page.visit()
    components = self.note_unit_page.components
    for note in components[0].create_note('.{}'.format(self.selector)):
        note.tags = ['fruit', 'tasty']
    self.note_unit_page.refresh()
    self.assertEqual(['fruit', 'tasty'], self.note_unit_page.notes[0].tags)
