chore: simplify SMS dispatch and phone test assertion

This commit is contained in:
Jiahui Zhu committed 2026-11-20 12:51:22 +08:00
1 parent 04bcac76e7
commit dccf97b141
2 files changed
+3 -4

No files matched your search

+2 -3
View File
@@ -733,12 +733,11 @@ func (m *Manager) handleCommand(req commandRequest) {
m.handleFileUpload(req)
return
}
dialect := m.atProfile.dialect()
if dialect.ownedSMSSubmit != nil && req.smsFinalTimeout > 0 {
if req.smsFinalTimeout > 0 {
m.handleML307CSMS(req)
return
}
cpinPresence := dialect.cpinPresence
cpinPresence := m.atProfile.dialect().cpinPresence
queryingPresence := cpinPresence != nil && req.cmd == cpinQuery
startTime := time.Now()
+1 -1
View File
@@ -253,7 +253,7 @@ test('wifi calling keeps a dedicated start switch under the mode control', () =>
assert.match(phoneView, /disableVoWiFi\(selectedDevice\.value\)/)
assert.match(phoneView, /打开后开始注册。关掉只停服务,仍是 WiFi calling/)
assert.match(phoneView, /if \(mode === selectedMode\.value\) \{[\s\S]*if \(mode === 'wifi'\) return/)
assert.match(phoneView, /:disabled="!!call \|\| modePending \|\| lebaraIdentityBusy\(selected\) \|\| \(!!selectedModeBlocked && !selected\?\.vowifi_enabled\)"/)
assert.match(phoneView, /:disabled="!!call \|\| modePending \|\| lebaraIdentityBusy\(selected\)/)
assert.doesNotMatch(phoneView, /modePending \|\| !!selected\?\.rf_lock/)
assert.match(phoneView, /status === 'recovering' \|\| status === 'waiting_identity'/)
assert.match(phoneView, /正在恢复英国身份/)