fix(core): avoid page full refresh (#3341)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
1 parent
ccb0df10e4
commit
e6e98975ed
18 files changed
+276
-433
No files matched your search
@@ -15,10 +15,9 @@ test('goto not found page', async ({ page }) => {
|
||||
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);
|
||||
await page.waitForTimeout(1000);
|
||||
expect(page.url()).toBe(new URL('/404', webUrl).toString());
|
||||
});
|
||||
Reference in new issue
Block a user