fix(core): css.ts hmr (#3317)

This commit is contained in:
Alex Yang
2023-07-19 23:52:21 +08:00
committed by GitHub
parent ae182bfd78
commit 19925038ba
7 changed files with 56 additions and 10 deletions

View File

@@ -16,6 +16,8 @@ test('goto not found workspace', async ({ page }) => {
await openHomePage(page);
await waitEditorLoad(page);
const currentUrl = page.url();
// if doesn't wait for timeout, data won't be saved into indexedDB
await page.waitForTimeout(1000);
await page.goto(new URL('/workspace/invalid/all', webUrl).toString());
await waitEditorLoad(page);
expect(page.url()).toEqual(currentUrl);