fix(core): falky ai save as block test (#11878)

This commit is contained in:
yoyoyohamapi
2025-04-22 06:58:26 +00:00
parent 9373006b9f
commit 19c06a2821

View File

@@ -53,6 +53,20 @@ export class EditorUtils {
await page.getByTestId('switch-edgeless-mode-button').click();
editor.waitForElementState('hidden');
await page.waitForSelector('edgeless-editor');
try {
const edgelessNotificationClose = page.getByTestId(
'notification-close-button'
);
await edgelessNotificationClose.waitFor({
state: 'visible',
timeout: 2000,
});
await edgelessNotificationClose.click();
// Focus to the edgeless editor
await page.mouse.click(400, 400);
} catch {
// do nothing if the notification close button is not found
}
}
public static async switchToPageMode(page: Page) {