mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 10:22:55 +08:00
fix: correct router logic (#2342)
This commit is contained in:
@@ -3,7 +3,6 @@ import { expect } from '@playwright/test';
|
||||
|
||||
import { openHomePage, webUrl } from '../libs/load-page';
|
||||
import { waitMarkdownImported } from '../libs/page-logic';
|
||||
import { clickSideBarAllPageButton } from '../libs/sidebar';
|
||||
|
||||
test('goto not found page', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
@@ -17,9 +16,8 @@ test('goto not found page', async ({ page }) => {
|
||||
test('goto not found workspace', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await waitMarkdownImported(page);
|
||||
await clickSideBarAllPageButton(page);
|
||||
const currentUrl = page.url();
|
||||
await page.goto(new URL('/workspace/invalid/all', webUrl).toString());
|
||||
await clickSideBarAllPageButton(page);
|
||||
await page.waitForSelector('v-line');
|
||||
expect(page.url()).toEqual(currentUrl);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user