Simplify subscription profile management UI
This commit is contained in:
@@ -94,8 +94,9 @@ test('manual ping uses plain language and keeps results beside server names', ()
|
||||
assert.match(picker, /<svg className="client-server-health-checking"/);
|
||||
assert.doesNotMatch(picker, />Проверяем…<\/span>/);
|
||||
assert.match(picker, /function ServerCheckButton/);
|
||||
assert.match(picker, /client-server-check client-tooltip-anchor/);
|
||||
assert.match(picker, /<span className="client-tooltip" role="tooltip">/);
|
||||
assert.match(picker, /client-server-check\$\{checking \? ' is-checking' : ''\}/);
|
||||
assert.match(picker, /<span className="client-server-check-label">/);
|
||||
assert.doesNotMatch(picker, /client-tooltip/);
|
||||
assert.doesNotMatch(picker, /TCP|Не проверен/);
|
||||
assert.match(picker, /<strong>\{server\.label\}<\/strong>[\s\S]*?<\/button>[\s\S]*?client-server-meta/);
|
||||
assert.match(picker, /\[server\.city, server\.country\]\.filter\(Boolean\)\.join\(' · '\)/);
|
||||
@@ -132,6 +133,7 @@ test('server picker starts simple and reveals advanced controls on demand', () =
|
||||
assert.match(picker, /\.slice\(0, SIMPLE_SERVER_LIMIT\)/);
|
||||
assert.match(picker, /\{selected && <ServerRow/);
|
||||
assert.match(styles, /\.client-profile-body \.client-server-row \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\) 64px;/);
|
||||
assert.match(styles, /\.client-profile-body \.client-server-row\.is-selected \{[\s\S]*?box-shadow: inset 2px 0 var\(--client-accent\);/);
|
||||
assert.match(styles, /\.client-profile-body \.client-server-check::after \{[\s\S]*?content: 'ПРОВЕРИТЬ ПИНГ';/);
|
||||
assert.match(styles, /\.client-profile-body \.client-server-row\.is-selected \{[\s\S]*?background: color-mix\(in oklch, var\(--client-accent\) 5%, transparent\);/);
|
||||
assert.match(styles, /\.client-profile-body \.client-server-check-label \{[\s\S]*?display: inline;/);
|
||||
assert.doesNotMatch(styles, /\.client-profile-body \.client-server-check::after/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user