fix(core): skip onboarding in e2e tests (#12044)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Chores**
	- Updated test setup to automatically skip onboarding steps during environment initialization.
	- Simplified test utility methods by removing notification handling logic from chat panel and editor mode switching processes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
akumatus
2025-04-28 14:25:28 +00:00
parent d57b9372ae
commit d7be1b3424
4 changed files with 6 additions and 18 deletions
@@ -53,20 +53,6 @@ export class EditorUtils {
await page.getByTestId('switch-edgeless-mode-button').click();
await 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) {