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();
|
await page.getByTestId('switch-edgeless-mode-button').click();
|
||||||
editor.waitForElementState('hidden');
|
editor.waitForElementState('hidden');
|
||||||
await page.waitForSelector('edgeless-editor');
|
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) {
|
public static async switchToPageMode(page: Page) {
|
||||||
|
|||||||
Reference in New Issue
Block a user