fix: windows rust cache (#1710)

This commit is contained in:
Peng Xiao
2023-03-28 13:25:16 +08:00
committed by GitHub
parent 26b030ecda
commit 5a508b1fe4
27 changed files with 129 additions and 23 deletions
+9 -1
View File
@@ -1,7 +1,15 @@
import type { Page } from '@playwright/test';
export async function waitMarkdownImported(page: Page) {
return page.evaluate(
() =>
new Promise(resolve => {
document.addEventListener('markdown:imported', resolve);
})
);
}
export async function newPage(page: Page) {
await page.waitForSelector('v-line');
// fixme(himself65): if too fast, the page will crash
await page.getByTestId('new-page-button').click({
delay: 100,