Oleg Isonen fc5b7e140e test: Cover Builder tRPC request workflows (#6720)
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
2026-11-19 10:29:28 +01:00
2026-02-05 10:25:17 +01:00
2026-03-20 21:09:47 +01:00
2023-09-06 21:43:29 +03:00

builder-screenshot

Webstudio is an Open Source Visual Development Platform for developers, designers, and cross-functional teams. You own the data, components, and infrastructure. You can use the hosted version or roll out your own.


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%