1 parent
9cb91b9e34
commit
2a40f48dfc
4 files changed
+7
-33
No files matched your search
@@ -418,7 +418,7 @@ test('配置编辑区移除填写标题、说明与重复标签,保留主标
|
||||
assert.match(template, /<h3 id="config-page-title">{{ currentSection.label }}/)
|
||||
assert.match(template, /v-if="selectedSection === 'ssl' && status.tlsMode === 'proxy'"[^>]*role="note"/)
|
||||
assert.match(template, /v-if="sectionError"[\s\S]*?:title="sectionError"/)
|
||||
assert.match(template, /<p id="config-sensitive-hint"/)
|
||||
assert.match(template, /id="config-sensitive-hint"/)
|
||||
assert.match(template, /v-if="secretField" class="secret-editor"/)
|
||||
assert.match(template, /v-if="validationResult"[^>]*role="status"/)
|
||||
})
|
||||
@@ -462,16 +462,12 @@ test('标题合并配置状态,保留刷新保护和降级提示,不再渲
|
||||
assert.match(header, /aria-labelledby="config-page-title"/)
|
||||
assert.match(header, /<h3 id="config-page-title">{{ currentSection.label }}/)
|
||||
assert.match(header, /<span class="sr-only">运行状态:<\/span>{{ stateLabel }}/)
|
||||
assert.match(header, /<dl class="overview-meta" aria-label="当前配置状态">/)
|
||||
assert.equal((header.match(/<dt>/g) || []).length, 3)
|
||||
assert.match(header, /status.activeGeneration/)
|
||||
assert.match(header, /formatTime\(status.lastValidAt\)/)
|
||||
assert.match(header, /v-for="service in status.pendingRestart"/)
|
||||
assert.match(header, /v-for="issue in status.degradedReasons \|\| \[\]"/)
|
||||
assert.match(header, /v-if="!loading && !availabilityError"/)
|
||||
assert.match(header, /:disabled="!!working \|\| sectionLoading \|\| loading"/)
|
||||
assert.match(header, /@click="refreshPage"/)
|
||||
assert.match(header, /canWrite \? '敏感凭据已脱敏' : '只读模式'/)
|
||||
assert.doesNotMatch(header, /<dl class="overview-meta"/)
|
||||
assert.doesNotMatch(header, /access-tag/)
|
||||
assert.doesNotMatch(template, /配置快照|status-panel|status-grid/)
|
||||
assert.match(css, /@container config-main \(max-width: 620px\)/)
|
||||
assert.match(css, /overflow-wrap: anywhere/)
|
||||
|
||||
Reference in new issue
Block a user