refactor: workspace loading logic (#1966)

This commit is contained in:
Himself65 authored and GitHub committed 2023-04-16 16:02:41 -05:00
1 parent caa292e097
commit 7bbe67af43
88 files changed
+2647 -2231

No files matched your search

+1 -6
View File
@@ -1,12 +1,7 @@
import type { Page } from '@playwright/test';
export async function waitMarkdownImported(page: Page) {
return page.evaluate(
() =>
new Promise(resolve => {
document.addEventListener('markdown:imported', resolve);
})
);
await page.waitForSelector('v-line');
}
export async function newPage(page: Page) {