fix: correct router logic (#2342)

This commit is contained in:
Himself65 authored and GitHub committed 2023-05-12 00:55:45 -05:00
1 parent 10b4558947
commit 21fdced2bd
24 files changed
+206 -332

No files matched your search

@@ -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);
});