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

Function waitUntilHydrated

e2e/hotkeys.spec.ts:58–62  ·  view source on GitHub ↗
(page: Page, pageId: PageId)

Source from the content-addressed store, hash-verified

56// This is a hack to work around the fact that the page isn't always hydrated
57// with the new content when the URL changes.
58const waitUntilHydrated = async (page: Page, pageId: PageId) => {
59 await page.waitForURL(links[pageId]);
60 await expect(page).toHaveTitle(titles[pageId]);
61 await waitUntilListening(page);
62};
63
64const completeMultifileLabWithHotkey = async ({
65 browserName,

Callers 1

hotkeys.spec.tsFile · 0.85

Calls 1

waitUntilListeningFunction · 0.85

Tested by

no test coverage detected