修正原生壳公开主站配置
将原生壳公开主站统一为 www.genarrative.world 调整 Tauri release 直接加载线上主站并移除 frontendDist 打包 补齐创作入口配置开发代理与回归测试 同步原生壳方案文档和共享记忆
This commit is contained in:
@@ -120,7 +120,7 @@ describe('PlatformProfileQrScannerModal', () => {
|
||||
const getUserMedia = vi.fn();
|
||||
const onResult = vi.fn();
|
||||
vi.spyOn(hostBridgeServices, 'scanHostQrCode').mockResolvedValue({
|
||||
value: 'https://app.genarrative.world/works/detail?work=PZ-1',
|
||||
value: 'https://www.genarrative.world/works/detail?work=PZ-1',
|
||||
format: 'qr_code',
|
||||
});
|
||||
installMediaDevices(getUserMedia);
|
||||
@@ -140,7 +140,7 @@ describe('PlatformProfileQrScannerModal', () => {
|
||||
});
|
||||
|
||||
expect(onResult).toHaveBeenCalledWith(
|
||||
'https://app.genarrative.world/works/detail?work=PZ-1',
|
||||
'https://www.genarrative.world/works/detail?work=PZ-1',
|
||||
);
|
||||
expect(getUserMedia).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -3181,7 +3181,7 @@ test('profile scan action uses native QR scanner before browser camera', async (
|
||||
const scanHostQrCodeSpy = vi
|
||||
.spyOn(hostBridgeServices, 'scanHostQrCode')
|
||||
.mockResolvedValue({
|
||||
value: 'https://app.genarrative.world/works/detail?work=PZ-1',
|
||||
value: 'https://www.genarrative.world/works/detail?work=PZ-1',
|
||||
format: 'qr_code',
|
||||
});
|
||||
|
||||
@@ -3203,7 +3203,7 @@ test('profile scan action uses native QR scanner before browser camera', async (
|
||||
|
||||
expect(scanHostQrCodeSpy).toHaveBeenCalledTimes(1);
|
||||
expect(qrScannerDialog.textContent).toContain(
|
||||
'已识别:https://app.genarrative.world/works/detail?work=PZ-1',
|
||||
'已识别:https://www.genarrative.world/works/detail?work=PZ-1',
|
||||
);
|
||||
expect(getUserMedia).not.toHaveBeenCalled();
|
||||
expect(mockGetRpgProfileRechargeCenter).not.toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user