mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
fc5b7e140e77fc88ea006eb4f4bae9fb2b0ffb3b
Builder features that use tRPC need request-level coverage beyond publishing. This PR shares the publish request interceptor and uses it to test uncovered UI flows across the HTTP boundary. It only changes test support and tests; product behavior and API contracts stay unchanged. ## Todos - [x] Move the tRPC interceptor into shared Builder test support and update its publish tests. - [x] Replace the JSX paste test’s tRPC client mock with an intercepted request. - [x] Test workspace member invitations for success and server rejection. - [x] Test accepting and declining notifications. - [x] Test backup loading and both successful and failed restores. - [x] Make the shared interceptor reject invalid batch requests, enforce each request's method, and reject unregistered routes. - [x] Review Builder docs; the existing dashboard guide already describes invitations, and these test-only changes need no doc update. - [x] Run focused browser tests, Builder typecheck, lint, and formatting checks. - [x] Wait for CI on the latest commit. ## Verification - Publish browser tests: 19 files, 199 tests passed. - Shared tRPC, notifications, and backups: 3 files, 12 tests passed. - JSX paste request tests: 1 file, 6 tests passed. - Workspace member request tests: 1 file, 2 tests passed. - New regression tests failed against the previous implementation and passed with the fix. - Builder typecheck, changed-file lint, formatting, diff checks, and CI passed. Ref #6719
Learning Resources
Social Media
License
- Webstudio core (all functionality in this repository) is free/open-source under AGPL-3.0-or-later.
- sdk-components-animation package (optional) is proprietary. You must accept the Webstudio, Inc. EULA located in sdk-components-animation/LICENSE before using it.
Languages
TypeScript
97.9%
PLpgSQL
1.5%
CSS
0.3%
Shell
0.2%
JavaScript
0.1%