Files
AFFiNE-Mirror/tests/affine-cloud-copilot
DarkSky 51fdf602ba feat(core): adapt new lifecycle (#15575)
fix #15574


#### PR Dependency Tree


* **PR #15575** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

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

## New Features
* Added source-aware blob handling for current documents and page
history.
* Added document lifecycle support for trashing, restoring, and
permanently deleting documents.
* Copilot attachments now upload directly to session attachment
endpoints.

## Bug Fixes
* Document actions now complete before confirmations, notifications, and
navigation proceed.
* Improved cancellation, upload fallback, size-limit handling, and cloud
synchronization reliability.
* Invite-link expiration now remains reliable for long durations.
* Improved synchronization for document permissions and reserved
documents.

## Changes
* Blob management now displays attachment icons instead of image
previews.
* Cloud synchronization now uses a unified batch protocol.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-09 23:00:06 +08:00
..

AFFiNE Cloud Copilot E2E Tests

This directory contains end-to-end tests for the AFFiNE Cloud Copilot feature. The tests are organized in a structured way to ensure comprehensive coverage of different functionalities.

Test Structure

The e2e tests are organized into the following categories:

  1. Basic Tests (/basic): Tests for verifying core AI capabilities including feature onboarding, authorization workflows, and basic chat interactions.
  2. Chat Interaction Tests (/chat-with): Tests for verifying the AI's interaction with various object types, such as attachments, images, text content, Edgeless elements, etc.
  3. AI Action Tests (/ai-action): Tests for verifying the AI's actions, such as text translation, gramma correction, etc.
  4. Insertion Tests (/insertion): Tests for verifying answer insertion functionality.

Test Utilities

The /utils directory contains shared utilities for testing:

  • ChatPanelUtils: Helper functions for chat panel interactions
  • EditorUtils: Helper functions for editor operations
  • TestUtils: General test utilities and setup functions