收口宿主导航诊断日志
微信小程序导航失败日志改为固定标签 移动 WebView 进程失败日志不再输出 detail 对象 补充门禁和共享决策记录
This commit is contained in:
@@ -1600,6 +1600,9 @@ function assertH5HostBridgePayloadBoundaries() {
|
||||
"'[host-bridge] wechat mini program navigation failed'",
|
||||
) ||
|
||||
!h5HostBridgeSource.includes('reject(new Error(errorMessage));') ||
|
||||
h5HostBridgeSource.includes(
|
||||
"console.error(\n '[host-bridge] wechat mini program navigation failed'",
|
||||
) ||
|
||||
h5HostBridgeSource.includes('reject(new Error(error?.errMsg || errorMessage));')
|
||||
) {
|
||||
throw new Error(
|
||||
@@ -1611,6 +1614,7 @@ function assertH5HostBridgePayloadBoundaries() {
|
||||
"errMsg: 'navigateTo:fail private native detail'",
|
||||
"rejects.toThrow(\n '请在微信小程序内完成登录',",
|
||||
"rejects.not.toThrow(\n 'private native detail',",
|
||||
"expect(consoleError.mock.calls.flat()).not.toContain(navigationError)",
|
||||
]) {
|
||||
if (!h5HostBridgeTestSource.includes(snippet)) {
|
||||
throw new Error(`H5 HostBridge navigation failure test must include ${snippet}`);
|
||||
|
||||
Reference in New Issue
Block a user