mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 10:22:55 +08:00
fix(core): falky ai save as block test (#11878)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user