3x-ui/frontend/src/test
nima1024m ade74eb321
fix(balancers): keep mixed strategies on one observer (#5674)
* fix(balancers): keep mixed strategies on one observer

Xray resolves Observatory and Burst Observatory through the same global observer feature. When any burst-required strategy is present, keep all observer-backed balancer selectors on burstObservatory and remove the regular observatory so mixed leastPing configs cannot generate two competing observer blocks.

* test(balancers): cover observer strategy combinations

Exercise the observer sync matrix for random, round-robin, leastPing, and leastLoad balancers. Include mixed and stale-observer cases so the panel keeps only the observer type that Xray should consume.

* fix(balancers): clarify observer empty state

Update the Observatory tab empty hint to describe the actual auto-managed cases. Least Ping, Least Load, and fallback Random or Round-robin balancers now explain why an observer is added before the balancer can choose a target.

* fix(balancers): remove mixed observer switch

Show only the observer settings panel that matches the current balancer requirements. Legacy configs that still contain both observatory blocks now display a warning instead of a tab switch, since saving balancers normalizes the config back to one global observer.

* test(balancers): cover observer cleanup on deletion

Add direct balancer deletion and outbound cascade cases for leastLoad, fallback, and mixed leastPing scenarios. These tests pin that the final unneeded observer is removed, burst switches back to regular observatory when only leastPing remains, and burst remains when a burst-required balancer survives.
2026-07-02 18:18:30 +02:00
..
__snapshots__ feat(reality): derive a stable per-client spiderX for shared links 2026-07-02 12:53:08 +02:00
golden/fixtures feat(xhttp): support sessionID* rename + sessionIDTable/Length (xray v26.6.22) (#5506) 2026-06-23 17:38:16 +02:00
api-token-date.test.tsx fix(settings): require re-2FA confirmation for sensitive setting changes (#5610) 2026-06-28 15:17:15 +02:00
balancer-form-modal.test.tsx fix(balancers): defer validation errors until touched or save (#5626) 2026-06-28 15:01:53 +02:00
balancer-observatory-sync.test.ts fix(balancers): keep mixed strategies on one observer (#5674) 2026-07-02 18:18:30 +02:00
balancer.test.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
client-traffic-display.test.ts feat(clients): restore traffic usage progress bars on Clients page (#5150) 2026-06-11 12:10:49 +02:00
clients-summary.test.ts fix(clients): keep the summary card live without a page refresh 2026-06-01 06:10:25 +02:00
dns.test.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
finalmask.test.ts feat(finalmask): support Salamander packetSize (Gecko) and Realm tlsConfig for Hysteria2 (#5278) 2026-06-15 00:21:31 +02:00
format-validation-error.test.ts feat(inbounds): clearer client validation errors on save 2026-05-31 22:41:58 +02:00
generated-examples.test.ts feat(api-docs): generate OpenAPI components/schemas from Go structs 2026-06-06 16:22:21 +02:00
headers.test.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
host-link.test.ts fix(sub): bake Host VLESS Route into subscription UUIDs 2026-06-29 14:32:23 +02:00
host-schema.test.ts fix(sub): bake Host VLESS Route into subscription UUIDs 2026-06-29 14:32:23 +02:00
inbound-defaults.test.ts feat(wireguard): multi-client support 2026-06-28 00:44:38 +02:00
inbound-form-adapter.test.ts fix(inbounds): apply the legacy xhttp session-key migration when editing 2026-07-01 23:11:58 +02:00
inbound-form-blocks.test.tsx feat(reality): derive a stable per-client spiderX for shared links 2026-07-02 12:53:08 +02:00
inbound-form-modal.test.tsx fix: resolve a batch of open bug-tagged issues (traffic accounting, share strategy, sub address, CPU) (#5477) 2026-06-22 00:22:28 +02:00
inbound-from-db.test.ts fix: enable XTLS vision flow for VLESS+XHTTP+vlessenc in UI and share links (#5157) (#5185) 2026-06-11 12:04:02 +02:00
inbound-full.test.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
inbound-link.test.ts fix(sub): bake Host VLESS Route into subscription UUIDs 2026-06-29 14:32:23 +02:00
inbound-tag.test.ts fix(inbounds): drop listen address from auto-generated inbound tag 2026-06-01 09:33:49 +02:00
link-label.test.ts feat(hosts): managed Hosts for per-host subscription link overrides (#5409) 2026-06-17 12:06:55 +02:00
log-parse.test.ts fix(mtproto): reap orphaned mtg, fix SysLog viewer, mtg log visibility, export remark (#5105) (#5107) 2026-06-09 04:01:33 +02:00
observatory-settings-tab.test.tsx fix(balancers): keep mixed strategies on one observer (#5674) 2026-07-02 18:18:30 +02:00
outbound-defaults.test.ts refactor(wireguard): drop removed workers field (xray v26.6.22) (#5509) 2026-06-23 16:23:02 +02:00
outbound-form-adapter.test.ts fix(outbound): preserve custom headers for HTTP outbounds (#5519) 2026-06-24 14:22:25 +02:00
outbound-form-modal.test.tsx Test-quality audit: fix 2 prod bugs, strengthen weak tests, add mutation/fuzz/CI tooling (#5345) 2026-06-15 15:17:03 +02:00
outbound-link-parser.test.ts feat(xhttp): support sessionID* rename + sessionIDTable/Length (xray v26.6.22) (#5506) 2026-06-23 17:38:16 +02:00
outbound-tag-rename.test.ts fix(xray): sync routing rules when outbound tag is renamed (#5006) 2026-06-08 20:30:41 +02:00
panel-version.test.ts feat(panel): surface dev-build version in UI, bot, and CLI 2026-06-25 02:36:41 +02:00
protocol-capabilities.test.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
protocols.test.ts Test-quality audit: fix 2 prod bugs, strengthen weak tests, add mutation/fuzz/CI tooling (#5345) 2026-06-15 15:17:03 +02:00
remark-template-field.test.tsx feat(hosts): managed Hosts for per-host subscription link overrides (#5409) 2026-06-17 12:06:55 +02:00
remark-variables.test.ts feat(hosts): managed Hosts for per-host subscription link overrides (#5409) 2026-06-17 12:06:55 +02:00
routing-reference-cleanup.test.ts fix(balancers): keep mixed strategies on one observer (#5674) 2026-07-02 18:18:30 +02:00
rule.test.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
security.test.ts fix(reality): load dest as target alias so existing inbounds aren't wiped (#5295) 2026-06-15 00:25:10 +02:00
setting-ldap-skip-verify.test.ts feat: ldap skip tls verify (#5637) 2026-06-28 18:10:38 +02:00
setup.components.ts refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
setup.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
size-formatter.test.ts feat(ui): show per-inbound live speed (#5261) 2026-06-14 22:39:40 +02:00
sockopt.test.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
spider-x.test.ts feat(reality): derive a stable per-client spiderX for shared links 2026-07-02 12:53:08 +02:00
stream-wire-normalize.test.ts feat(xhttp): default xmux maxConnections to 6 2026-06-27 20:26:03 +02:00
stream.test.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
test-utils.tsx refactor(frontend): reorganize source tree & break down oversized modals/tabs (#4698) 2026-05-30 21:51:33 +02:00
tunnel-rewriteport.test.ts fix(inbounds): accept null rewritePort in tunnel settings (#5516) (#5525) 2026-06-24 12:54:05 +02:00
vless-encryption.test.ts fix(web): sync the VLESS generate-key dropdown with the encryption field 2026-07-02 17:37:04 +02:00
wireguard-client-config.test.ts feat(wireguard): client config UX, collapsible config card, configurable DNS 2026-06-29 00:50:34 +02:00
wireguard-clients-link.test.ts feat(wireguard): multi-client support 2026-06-28 00:44:38 +02:00
xhttp-session-id.test.ts feat(xhttp): support sessionID* rename + sessionIDTable/Length (xray v26.6.22) (#5506) 2026-06-23 17:38:16 +02:00