Improve client accessibility and bump Harbor versions
All checks were successful
Build and Deploy Gateway / build-and-push (push) Successful in 14s
Build and Deploy Gateway / deploy (push) Successful in 6s

This commit is contained in:
2026-07-12 13:24:05 +03:00
parent 5b3d288405
commit 24fda3e34e
7 changed files with 215 additions and 30 deletions

View File

@@ -2,6 +2,7 @@ import assert from 'node:assert/strict';
import test from 'node:test';
import {
accessTabForKey,
connectionAction,
copyText,
formatConnectionDuration,
@@ -93,6 +94,16 @@ test('copy uses the synchronous native path available on gateway HTTP', async ()
assert.equal(textarea.removed, true);
});
test('Gateway access tabs wrap with arrows and support Home and End', () => {
const tabs = ['gateway', 'proxy'];
assert.equal(accessTabForKey(tabs, 'gateway', 'ArrowLeft'), 'proxy');
assert.equal(accessTabForKey(tabs, 'proxy', 'ArrowRight'), 'gateway');
assert.equal(accessTabForKey(tabs, 'proxy', 'Home'), 'gateway');
assert.equal(accessTabForKey(tabs, 'gateway', 'End'), 'proxy');
assert.equal(accessTabForKey(tabs, 'gateway', 'Enter'), 'gateway');
});
test('subscription usage combines traffic and caps progress', () => {
assert.deepEqual(subscriptionUsage({ upload: 30, download: 80, total: 100, expire: 2 }), {
upload: 30,