feat: 添加固定引导 H5 线路测试,用于环回浏览器和原生应用访问

This commit is contained in:
Booker
2026-06-03 20:15:02 +07:00
parent d3550411b1
commit 4b652a090d

View File

@@ -44,6 +44,22 @@ void main() {
expect(urls, ['https://h5-test.imharry.work/']);
});
test('keeps fixed bootstrap H5 line for loopback browser access', () {
final urls = AppConfig.defaultH5LineUrlsForBaseUri(
Uri.parse('http://127.0.0.1:3000/'),
);
expect(urls, ['https://h5-test.imharry.work/']);
});
test('keeps fixed bootstrap H5 line for native app access', () {
final urls = AppConfig.defaultH5LineUrlsForBaseUri(
Uri.parse('file:///android_asset/flutter_assets/'),
);
expect(urls, ['https://h5-test.imharry.work/']);
});
test('uses fixed client config query parameters', () {
expect(AppConfig.clientConfigQueryPayload, {
'device': 'h5',