mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
fix(core): improve doc title and icon display (#9755)
Closes: [AF-2132](https://linear.app/affine-design/issue/AF-2132/优化-emoji-title-和-icon-显示)
This commit is contained in:
@@ -76,6 +76,21 @@ export const createLinkedPage = async (page: Page, pageName?: string) => {
|
||||
.click();
|
||||
};
|
||||
|
||||
export const createTodayPage = async (page: Page) => {
|
||||
// fixme: workaround for @ popover not showing up when editor is not ready
|
||||
await page.waitForTimeout(500);
|
||||
await page.keyboard.type('@', { delay: 50 });
|
||||
const linkedPagePopover = page.locator('.linked-doc-popover');
|
||||
await expect(linkedPagePopover).toBeVisible();
|
||||
await type(page, 'Today');
|
||||
|
||||
await linkedPagePopover
|
||||
.locator(`icon-button`)
|
||||
.filter({ hasText: 'Today' })
|
||||
.nth(0)
|
||||
.click();
|
||||
};
|
||||
|
||||
export async function clickPageMoreActions(page: Page) {
|
||||
return page
|
||||
.getByTestId('header')
|
||||
|
||||
Reference in New Issue
Block a user