(request: APIRequestContext)
| 8 | '/learn/javascript-algorithms-and-data-structures/basic-javascript/comment-your-javascript-code'; |
| 9 | |
| 10 | const enableKeyboardShortcuts = async (request: APIRequestContext) => { |
| 11 | const res = await authedRequest({ |
| 12 | request, |
| 13 | endpoint: '/update-my-keyboard-shortcuts', |
| 14 | method: 'put', |
| 15 | data: { |
| 16 | keyboardShortcuts: true |
| 17 | } |
| 18 | }); |
| 19 | expect(await res.json()).toEqual({ |
| 20 | message: 'flash.keyboard-shortcut-updated', |
| 21 | type: 'success' |
| 22 | }); |
| 23 | }; |
| 24 | |
| 25 | const openModal = async (page: Page) => { |
| 26 | // The editor pane is focused by default, so we need to escape or it will |
no test coverage detected