feat(core): at menu ux (#9045)

fix AF-1843
This commit is contained in:
pengx17
2024-12-06 08:50:13 +00:00
parent d6869ca0e7
commit b378af5ade
11 changed files with 269 additions and 210 deletions

View File

@@ -70,9 +70,10 @@ export const createLinkedPage = async (page: Page, pageName?: string) => {
await expect(linkedPagePopover).toBeVisible();
await type(page, pageName || 'Untitled');
await page.keyboard.press('ArrowUp');
await page.keyboard.press('ArrowUp');
await page.keyboard.press('Enter', { delay: 50 });
await linkedPagePopover
.locator(`icon-button`)
.filter({ hasText: `New "${pageName}" page` })
.click();
};
export async function clickPageMoreActions(page: Page) {