feat: 添加固定引导 H5 线路测试,用于环回浏览器和原生应用访问
This commit is contained in:
@@ -44,6 +44,22 @@ void main() {
|
|||||||
expect(urls, ['https://h5-test.imharry.work/']);
|
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', () {
|
test('uses fixed client config query parameters', () {
|
||||||
expect(AppConfig.clientConfigQueryPayload, {
|
expect(AppConfig.clientConfigQueryPayload, {
|
||||||
'device': 'h5',
|
'device': 'h5',
|
||||||
|
|||||||
Reference in New Issue
Block a user