Add e2e coverage for Local, Playground, .wpress and existing-site imports#4057
Open
youknowriad wants to merge 4 commits into
Open
Add e2e coverage for Local, Playground, .wpress and existing-site imports#4057youknowriad wants to merge 4 commits into
youknowriad wants to merge 4 commits into
Conversation
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.
Related issues
How AI was used in this PR
Claude Code identified the remaining Import/Export rows of the manual pre-release test sheet with no automated coverage, wrote the tests, and iterated against a real packaged build until all five pass. Early iterations surfaced two behaviors that shaped the tests: imports replace the destination's wp-content (so fixtures must carry the active theme), and macOS AppleDouble entries in a tarball are picked up as SQL files (the committed tarball is built without them).
Proposed Changes
Adds automated end-to-end coverage for backup imports across all supported formats — previously manual-only (or, for Jetpack, skipped unless a privately shared file is provisioned):
The fixtures (~1.5 MB total, under
e2e/fixtures/backups/) were generated from a demo Studio site with a small custom theme and a few posts/pages; they contain no personal data (singleadmin <admin@localhost.com>user). The Jetpack fixture mimics the real per-table layout (sql/wp_*.sql+meta.json), exercising the multi-file SQL import path; the release-time test against a genuine WordPress.com backup remains inimport.test.ts.fixtures/backups/readme.mddocuments provenance and structure.Test-only change, cross-platform.
Testing Instructions
npm run cli:buildnpm run package -w apps/studionpx playwright test apps/studio/e2e/import-formats.test.tsPre-merge Checklist