removed DOM queries to assert the note type