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

Function getEditors

e2e/utils/editor.ts:3–5  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

1import { type Page } from '@playwright/test';
2
3export const getEditors = (page: Page) => {
4 return page.getByRole('textbox', { name: /editor content/i });
5};
6
7export const focusEditor = async ({
8 page,

Callers 13

replaceTextInCodeEditorFunction · 0.90
lower-jaw.spec.tsFile · 0.90
editor.spec.tsFile · 0.90
openModalFunction · 0.90
projects.spec.tsFile · 0.90
challenge.spec.tsFile · 0.90
hotkeys.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by 3

replaceTextInCodeEditorFunction · 0.72
openModalFunction · 0.72