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:
fundon
2024-09-18 12:11:14 +00:00
parent b73d3b3d55
commit f397815ad1
21 changed files with 424 additions and 300 deletions

View File

@@ -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
);
});