A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
add waits to screenshots
Myles Scolnick5d9296897383
diff --git a/frontend/e2e-tests/helper.ts b/frontend/e2e-tests/helper.tsindex 2b8ef21d70..ab235d3aed 100644--- a/frontend/e2e-tests/helper.ts+++ b/frontend/e2e-tests/helper.ts@@ -91,6 +91,9 @@ export async function pressShortcut(page: Page, action: HotkeyAction) {* Download HTML of the current notebook and take a screenshot*/export async function exportAsHTMLAndTakeScreenshot(page: Page) {+ // Wait for networkidle so that the notebook is fully loaded+ await page.waitForLoadState("networkidle");+// Start waiting for download before clicking. Note no await.const downloadPromise = page.waitForEvent("download");await page.getByTestId("notebook-menu-dropdown").click();@@ -105,6 +108,8 @@ export async function exportAsHTMLAndTakeScreenshot(page: Page) {const exportPage = await page.context().newPage();// @ts-expect-error process not definedconst fullPath = `${process.cwd()}/${path}`;- await exportPage.goto(`file://${fullPath}`);+ await exportPage.goto(`file://${fullPath}`, {+ waitUntil: "networkidle",+ });await takeScreenshot(exportPage, path);}