Refine connectivity diagnostics service management
This commit is contained in:
@@ -127,13 +127,19 @@ test('secondary menus share one right rail and both drawers open from the right'
|
||||
|
||||
test('connectivity diagnostics render stable compact tables before the first run', () => {
|
||||
assert.match(diagnostics, /CONNECTIVITY_IP_SOURCES\.map/);
|
||||
assert.match(diagnostics, /const sites = \[\.\.\.CONNECTIVITY_SITES, \.\.\.customServices\]/);
|
||||
assert.equal((diagnostics.match(/<table className="client-diagnostics-table"/g) || []).length, 2);
|
||||
assert.match(diagnostics, /Добавить свой сервис/);
|
||||
assert.match(diagnostics, /CONNECTIVITY_SITES\.filter\(\(\{ id \}\) => !hiddenServiceIds\.includes\(id\)\)/);
|
||||
assert.equal((diagnostics.match(/<table className="client-diagnostics-table"/g) || []).length, 1);
|
||||
assert.match(diagnostics, /className="client-diagnostics-service-table" role="table"/);
|
||||
assert.match(diagnostics, /\+ Добавить сервис/);
|
||||
assert.match(diagnostics, /HIDDEN_SERVICES_KEY/);
|
||||
assert.match(diagnostics, /className="client-local-rule-delete"[\s\S]*Удалить сервис \$\{site\.label\}/);
|
||||
assert.match(diagnostics, /client-deletable-row[\s\S]*className="client-delete-strike"[\s\S]*onAnimationEnd/);
|
||||
assert.match(diagnostics, /document\.startViewTransition\(update\)/);
|
||||
assert.match(diagnostics, /client-diagnostics-refresh/);
|
||||
assert.match(diagnostics, /isGateway \? 'Gateway' : 'Connect'/);
|
||||
assert.doesNotMatch(diagnostics, /Проверить ещё раз|client-diagnostics-empty|client-diagnostics-run/);
|
||||
assert.match(diagnostics, /\{\(error \|\| result\) && <div className="client-diagnostics-feedback"/);
|
||||
assert.match(diagnostics, /\{error && <div className="client-diagnostics-feedback"/);
|
||||
assert.doesNotMatch(diagnostics, /SUMMARY_COPY|client-diagnostics-summary|client-diagnostics-time|checkedAt|Прямой маршрут/);
|
||||
assert.doesNotMatch(diagnostics, /PathDetails|client-diagnostics-details|Технические детали/);
|
||||
assert.doesNotMatch(rule('.client-diagnostics-feedback'), /min-height:/);
|
||||
assert.match(rule('.client-diagnostics-table'), /table-layout:\s*fixed/);
|
||||
|
||||
Reference in New Issue
Block a user