Function
holdKeyAndClickNoteAtIndex
(
noteIndex: number,
key: 'alt' | 'ctrl' | 'meta' | 'shift' | null = null
)
Source from the content-addressed store, hash-verified
| 85 | } |
| 86 | |
| 87 | const holdKeyAndClickNoteAtIndex = ( |
| 88 | noteIndex: number, |
| 89 | key: 'alt' | 'ctrl' | 'meta' | 'shift' | null = null |
| 90 | ) => { |
| 91 | key && cy.get('body').type(`{${key}}`, { release: false }) |
| 92 | getDynamicTestID(TestID.NOTE_LIST_ITEM + noteIndex).click() |
| 93 | } |
| 94 | |
| 95 | // click a note with the specified index |
| 96 | const clickNoteOptions = (noteIndex: number = 0) => { |