fix:购买商品饰品
This commit is contained in:
1 parent
1f9a8b67a2
commit
e29ed0a2c8
5 files changed
+88
-4
No files matched your search
@@ -44,6 +44,24 @@ void main() {
|
||||
expect(external.opensInApp, isFalse);
|
||||
});
|
||||
|
||||
test('adds retail quote context to the mall URL for H5', () {
|
||||
const config = MallTabConfig(
|
||||
enabled: true,
|
||||
url: 'https://mall.example.com/home',
|
||||
);
|
||||
|
||||
final uri = config.attributedUri(
|
||||
clickId: 'quote-click',
|
||||
entry: MallEntryRequest.quoteRetailGold,
|
||||
)!;
|
||||
|
||||
expect(uri.queryParameters['source_entry'], 'market_quote');
|
||||
expect(uri.queryParameters['hook_type'], 'quote_cta');
|
||||
expect(uri.queryParameters['entry_scene'], 'retail');
|
||||
expect(uri.queryParameters['entry_metal'], 'au');
|
||||
expect(uri.queryParameters['placement'], 'mall_tab');
|
||||
});
|
||||
|
||||
test('shows the first-install promo only for a configured mall entry', () {
|
||||
const configured = MallTabConfig(
|
||||
enabled: true,
|
||||
|
||||
Reference in new issue
Block a user