MCPcopy
hub / github.com/taniarascia/takenote / holdKeyAndClickNoteAtIndex

Function holdKeyAndClickNoteAtIndex

tests/e2e/utils/testNotesHelperUtils.ts:87–93  ·  view source on GitHub ↗
(
  noteIndex: number,
  key: 'alt' | 'ctrl' | 'meta' | 'shift' | null = null
)

Source from the content-addressed store, hash-verified

85}
86
87const 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
96const clickNoteOptions = (noteIndex: number = 0) => {

Callers 2

note.test.tsFile · 0.90

Calls 1

getDynamicTestIDFunction · 0.90

Tested by 1