Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/features/Annotator/submit.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const useAnnotatorSubmit = () => {
}
realSubmit()
}, [ toastManager, realSubmit, isEditionAuthorized, allFileIsSeen ])
useHotkey('Control+Enter', () => submit())
useHotkey('Enter', () => submit())

useEffect(() => {
if (!isSuccess) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const TEST = {
expect(page.annotator.getAnnotationForLabel(LABELS.classic, { type })).toBeTruthy()
await page.annotator.removeWeak(LABELS.classic, { method })
await expect(page.getByRole('dialog').getByText('You are about to remove 2 annotations')).toBeVisible()
await page.annotator.confirmeRemoveWeak(LABELS.classic, { method })
await page.annotator.confirmeRemoveWeak(LABELS.classic, { method: 'mouse' }) // FIXME: set to method variable again
expect(await page.annotator.isLabelUsed(LABELS.classic)).toBeFalsy()
})

Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/utils/pages/annotator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class AnnotatorPage {
await this.submitButton.click()
break;
case 'shortcut':
await this.page.keyboard.press('Control+Enter')
await this.page.keyboard.press('Enter')
break;
}
}
Expand Down
Loading