mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-09 03:39:30 +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 () => {
|
onSelect={async () => {
|
||||||
onClose();
|
onClose();
|
||||||
const id = nanoid();
|
const id = nanoid();
|
||||||
const page = await createPage(id, query);
|
const page = await createPage(id);
|
||||||
assertEquals(page.id, id);
|
assertEquals(page.id, id);
|
||||||
await jumpToPage(blockSuiteWorkspace.id, page.id);
|
await jumpToPage(blockSuiteWorkspace.id, page.id);
|
||||||
if (!query) {
|
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