Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{
type
Page } from
'@playwright/test'
;
2
3
export
const
getEditors = (page: Page) => {
4
return
page.getByRole(
'textbox'
, { name: /editor content/i });
5
};
6
7
export
const
focusEditor =
async
({
8
page,
Callers
13
replaceTextInCodeEditor
Function · 0.90
code-storage.spec.ts
File · 0.90
lower-jaw.spec.ts
File · 0.90
editor.spec.ts
File · 0.90
independent-lower-jaw.spec.ts
File · 0.90
challenge-reset-modal.spec.ts
File · 0.90
openModal
Function · 0.90
projects.spec.ts
File · 0.90
challenge.spec.ts
File · 0.90
completeMultifileLabWithHotkey
Function · 0.90
hotkeys.spec.ts
File · 0.90
multifile-editor.spec.ts
File · 0.90
Calls
no outgoing calls
Tested by
3
replaceTextInCodeEditor
Function · 0.72
openModal
Function · 0.72
completeMultifileLabWithHotkey
Function · 0.72