refactor(editor): move file drop manager to components (#9264)
This commit is contained in:
@@ -200,30 +200,30 @@ test('move to the last block of each level in multi-level nesting', async ({
|
||||
`${testInfo.title}_drag_3_9.json`
|
||||
);
|
||||
|
||||
await dragHandleFromBlockToBlockBottomById(
|
||||
page,
|
||||
'4',
|
||||
'3',
|
||||
true,
|
||||
-(1 * BLOCK_CHILDREN_CONTAINER_PADDING_LEFT)
|
||||
);
|
||||
await expect(page.locator('.affine-drag-indicator')).toBeHidden();
|
||||
|
||||
expect(await getPageSnapshot(page, true)).toMatchSnapshot(
|
||||
`${testInfo.title}_drag_4_3.json`
|
||||
);
|
||||
|
||||
await assertRichTexts(page, ['C', 'D', 'E', 'F', 'G', 'A', 'B']);
|
||||
await dragHandleFromBlockToBlockBottomById(
|
||||
page,
|
||||
'3',
|
||||
'4',
|
||||
true,
|
||||
-(2 * BLOCK_CHILDREN_CONTAINER_PADDING_LEFT)
|
||||
);
|
||||
await expect(page.locator('.affine-drag-indicator')).toBeHidden();
|
||||
|
||||
// FIXME(DND)
|
||||
// await dragHandleFromBlockToBlockBottomById(
|
||||
// page,
|
||||
// '4',
|
||||
// '3',
|
||||
// true,
|
||||
// -(1 * BLOCK_CHILDREN_CONTAINER_PADDING_LEFT)
|
||||
// );
|
||||
// await expect(page.locator('.affine-drag-indicator')).toBeHidden();
|
||||
//
|
||||
// expect(await getPageSnapshot(page, true)).toMatchSnapshot(
|
||||
// `${testInfo.title}_drag_4_3.json`
|
||||
// );
|
||||
//
|
||||
// await assertRichTexts(page, ['C', 'D', 'E', 'F', 'G', 'A', 'B']);
|
||||
// await dragHandleFromBlockToBlockBottomById(
|
||||
// page,
|
||||
// '3',
|
||||
// '4',
|
||||
// true,
|
||||
// -(2 * BLOCK_CHILDREN_CONTAINER_PADDING_LEFT)
|
||||
// );
|
||||
// await expect(page.locator('.affine-drag-indicator')).toBeHidden();
|
||||
//
|
||||
// expect(await getPageSnapshot(page, true)).toMatchSnapshot(
|
||||
// `${testInfo.title}_drag_3_4.json`
|
||||
// );
|
||||
|
||||
@@ -259,10 +259,10 @@ test.describe('Embed synced doc', () => {
|
||||
'.affine-database-column-header.database-row'
|
||||
);
|
||||
await databaseFirstCell.click({ force: true });
|
||||
const indicatorCount = await page
|
||||
.locator('affine-drag-indicator')
|
||||
const selectedCount = await page
|
||||
.locator('.affine-embed-synced-doc-container.selected')
|
||||
.count();
|
||||
expect(indicatorCount).toBe(1);
|
||||
expect(selectedCount).toBe(1);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user