mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
chore: bump blocksuite (#8230)
## 0.17.11
### Patch Changes
- [3c61be5](3c61be5ded): - Refactor drag handle widget
- Split embed blocks to `@blocksuite/affine-block-embed`
- Fix latex selected state in edgeless mode
- Fix unclear naming
- Fix prototype pollution
- Fix portal interaction in affine modal
- Fix paste linked block on edgeless
- Add scroll anchoring widget
- Add highlight selection
This commit is contained in:
@@ -572,3 +572,34 @@ test('can use slash menu to insert a newly created doc card', async ({
|
||||
page.locator('.affine-embed-linked-doc-content-title')
|
||||
).toContainText(testTitle);
|
||||
});
|
||||
|
||||
test('can use slash menu to insert an external link', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await clickNewPageButton(page);
|
||||
|
||||
// goto main content
|
||||
await page.keyboard.press('Enter');
|
||||
|
||||
// open slash menu
|
||||
await page.keyboard.type('/link', {
|
||||
delay: 50,
|
||||
});
|
||||
await page.keyboard.press('Enter');
|
||||
await expect(page.getByTestId('cmdk-quick-search')).toBeVisible();
|
||||
|
||||
const link = 'affine.pro';
|
||||
await page.locator('[cmdk-input]').fill(link);
|
||||
|
||||
const insertLinkBtn = page.locator(
|
||||
'[cmdk-item] [data-value="external-link:affine.pro"]'
|
||||
);
|
||||
|
||||
await expect(insertLinkBtn).toBeVisible();
|
||||
|
||||
await insertLinkBtn.click();
|
||||
|
||||
await expect(page.locator('affine-bookmark')).toBeVisible();
|
||||
await expect(page.locator('.affine-bookmark-content-url')).toContainText(
|
||||
link
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user