test: wait for page to load

This commit is contained in:
lawvs authored and DarkSky committed 2023-01-04 18:06:56 +08:00
1 parent c287380067
commit 1e27b2a619
2 files changed
+2 -5

No files matched your search

+1 -4
View File
@@ -12,10 +12,7 @@ test.describe('web console', () => {
//Later on, call this function with some arguments.
// const msg = await getEditoVersionHandle.evaluate((post, args) => post);
// console.log(getEditoVersionHandle);
await page.waitForTimeout(500);
const editoVersion = await page.evaluate(
() => (window as any).__editoVersion
);
const editoVersion = await page.evaluate(() => window.__editoVersion);
// const documentEditorVersion = await page.inputValue('input#editor-version');
const pkgEditorVersion = pkg.dependencies['@blocksuite/editor'];