feat: bump blocksuite (#5194)
Co-authored-by: AyushAgrawal-A2 <ayushagl06@gmail.com>
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { test } from '@affine-test/kit/playwright';
|
||||
import { checkBlockHub } from '@affine-test/kit/utils/editor';
|
||||
import { openHomePage } from '@affine-test/kit/utils/load-page';
|
||||
import { waitForEditorLoad } from '@affine-test/kit/utils/page-logic';
|
||||
|
||||
test('block-hub should work', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
await checkBlockHub(page);
|
||||
});
|
||||
@@ -2,7 +2,6 @@ import { test } from '@affine-test/kit/playwright';
|
||||
import { openHomePage } from '@affine-test/kit/utils/load-page';
|
||||
import {
|
||||
clickNewPageButton,
|
||||
clickPageMoreActions,
|
||||
getBlockSuiteEditorTitle,
|
||||
getPageOperationButton,
|
||||
waitForEditorLoad,
|
||||
@@ -41,21 +40,3 @@ test('New a page , then delete it in all pages, finally find it in trash', async
|
||||
|
||||
expect(currentWorkspace.flavour).toContain('local');
|
||||
});
|
||||
|
||||
test('New a page , then delete it in page, blockHub and option menu will not appear ', async ({
|
||||
page,
|
||||
}) => {
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
await clickNewPageButton(page);
|
||||
const title = getBlockSuiteEditorTitle(page);
|
||||
await title.pressSequentially('test');
|
||||
await clickPageMoreActions(page);
|
||||
await page.getByTestId('editor-option-menu-delete').click();
|
||||
await page.getByTestId('confirm-delete-page').click();
|
||||
await expect(page.getByTestId('header-dropDownButton')).not.toBeVisible();
|
||||
await expect(page.getByTestId('block-hub')).not.toBeVisible();
|
||||
await page.getByTestId('page-restore-button').click();
|
||||
await expect(page.getByTestId('header-dropDownButton')).toBeVisible();
|
||||
await expect(page.getByTestId('block-hub')).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user