'Scenario: User can toggle a single note by clicking on highlighted text.
Given I have a course with components with notes
When I click on highlighted text
And I move mouse out of the note
Then I see that the note is still shown
When I click outside the note
Then I see the the note is closed'

def test_can_toggle_by_clicking_on_highlighted_text(self):

    note = self.note_unit_page.notes[0]
    note.click_on_highlight()
    self.note_unit_page.move_mouse_to('body')
    self.assertTrue(note.is_visible)
    self.note_unit_page.click('body')
    self.assertFalse(note.is_visible)
