mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 02:21:49 +03:00
fix: createPage error (#1668)
This commit is contained in:
parent
6be94ca906
commit
4aea39fb94
@ -38,7 +38,7 @@ export const Footer: React.FC<FooterProps> = ({
|
||||
onSelect={async () => {
|
||||
onClose();
|
||||
const id = nanoid();
|
||||
const page = await createPage(id, query);
|
||||
const page = await createPage(id);
|
||||
assertEquals(page.id, id);
|
||||
await jumpToPage(blockSuiteWorkspace.id, page.id);
|
||||
if (!query) {
|
||||
|
14
tests/subpage.spec.ts
Normal file
14
tests/subpage.spec.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { expect } from '@playwright/test';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
test.describe('subpage', () => {
|
||||
test('Create subpage', async ({ page }) => {
|
||||
await page.getByTestId('sliderBar-arrowButton-collapse').click();
|
||||
const sliderBarArea = page.getByTestId('sliderBar');
|
||||
await expect(sliderBarArea).not.toBeVisible();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user