fix: correct router logic (#2342)

This commit is contained in:
Himself65
2023-05-12 13:55:45 +08:00
committed by GitHub
parent 10b4558947
commit 21fdced2bd
24 changed files with 206 additions and 332 deletions
@@ -36,9 +36,6 @@ test('public single page', async ({ page, browser }) => {
);
await page.getByTestId('confirm-enable-cloud-button').click();
await promise;
const newPage2Url = page.url().split('/');
newPage2Url[newPage2Url.length - 1] = page2Id as string;
await page.goto(newPage2Url.join('/'));
await page.waitForSelector('v-line');
const currentTitle = await page
.locator('[data-block-is-title="true"]')
@@ -46,9 +46,10 @@ test('should enable affine workspace successfully', async ({ page }) => {
await page.locator('[data-block-is-title="true"]').type('Hello, world!', {
delay: 50,
});
await page.waitForTimeout(1000);
await assertCurrentWorkspaceFlavour('affine', page);
await openWorkspaceListModal(page);
await page.getByTestId('workspace-list-modal-sign-out').click();
await page.waitForTimeout(1000);
await waitMarkdownImported(page);
await assertCurrentWorkspaceFlavour('local', page);
});