MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / openModal

Function openModal

e2e/shortcuts-modal.spec.ts:25–31  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

23};
24
25const openModal = async (page: Page) => {
26 // The editor pane is focused by default, so we need to escape or it will
27 // capture the keyboard shortcuts
28 await getEditors(page).press('Escape');
29 await expect(page.getByTestId('hotkeys')).toBeFocused();
30 await page.keyboard.press('Shift+?');
31};
32
33test.beforeEach(async ({ page, isMobile, request }) => {
34 test.skip(

Callers 15

viewProjectFunction · 0.85
viewExamResultsFunction · 0.85
showProjectPreviewFunction · 0.85
showExamResultsFunction · 0.85
createTestStoreFunction · 0.85
showProjectPreviewFunction · 0.85
showExamResultsFunction · 0.85
SidePanelFunction · 0.85
mapDispatchToPropsFunction · 0.85
hotkeys.tsxFile · 0.85

Calls 1

getEditorsFunction · 0.90

Tested by

no test coverage detected