test(e2e): add editor smoke tests for typing, formulas and slides#197
Open
juliusknorr wants to merge 1 commit into
Open
test(e2e): add editor smoke tests for typing, formulas and slides#197juliusknorr wants to merge 1 commit into
juliusknorr wants to merge 1 commit into
Conversation
Add Playwright smoke tests covering basic editing in each editor: - document: type text, apply bold/italic, verify text round-trips - spreadsheet: enter numbers and a formula, verify it is accepted - presentation: build a three-slide deck Shared helpers open a new document from the example app and reach the editor automation API inside the iframe. Assisted-by: ClaudeCode:claude-opus-4-8 Signed-off-by: Julius Knorr <jus@bitgrid.net>
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
Adds Playwright smoke tests exercising basic editing in each editor, run against the example app:
=A1+A2formula, verify the formula is accepted in the cellA shared
helpers.tsopens a new document from the example page, waits for the editor iframe to finish loading, and exposeseditorApi()to callwindow.Asc.editorinside the iframe.Notes
asc_*automation API rather than clicking toolbar buttons.15:asc_getCellInfo().asc_getText()returns the formula string andGetSelectedText()is empty for cell selections. A TODO documents the clipboard-based computed-value check (needs clipboard permissions in the project config).AddSlide()becauseCtrl+Monly fires when the thumbnail panel is focused.Testing
Verified locally against a running example server:
AI assistance
Tests authored with AI assistance (Claude Code, claude-opus-4-8); reviewed and verified by the contributor.