test: add testing system, coverage, and project documentation#89
Merged
Conversation
Cover initEmbedApi embed-mode detection, message dispatch/routing, origin filtering, readonly mode, and requestSaveDocument edge cases. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
.claude/settings.json contains local absolute paths and permission allowlists that are machine-specific and should not be committed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Export getSavedFileMimeType, getNormalizedFile, toUint8Array for direct testing - Add unit tests: all getSavedFileMimeType/getNormalizedFile/toUint8Array branches - Add unit tests: makeFileFromPayload File/Blob/ArrayBuffer/Uint8Array/error paths - Add E2E tests: embed-mode activation, postMessage round-trips, embedOrigin guard Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Updated markdown tables for better alignment in `2026-05-30-agent-collab-editor.md`. - Enhanced code formatting in `embed-api.ts`, `onlyoffice-editor.ts`, and `embed-demo.html` for consistency. - Simplified message handling in `embed-api.spec.ts` and `embed-api.test.ts` by reducing line breaks. - Improved test assertions in `onlyoffice-editor.test.ts` for clarity. - Adjusted HTML structure in `embed-demo.html` for better semantic organization.
…ment documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
embed-api.tsandonlyoffice-editor.tsonlyoffice-editor.tsfor direct testingCLAUDE.mdwith full project architecture guide for future contributors/AI sessions.gitignoreentries forcoverage/,playwright-report/,test-results/,.claude/Test coverage highlights
embed-api.tsdocument-utils.tsi18n.tsonlyoffice-editor.tsTest plan
pnpm run lint:ts— passespnpm run test:coverage— 63 unit tests, all pass, thresholds metpnpm run test:e2e— 10 E2E tests, all pass🤖 Generated with Claude Code