feat: completely remove credits and promocodes across tool pages, pricing, and all app configs
This commit is contained in:
@@ -32,12 +32,11 @@ const mockApp: AppItem = {
|
||||
},
|
||||
tools: ['face.blemish.remove'],
|
||||
rating: { value: 4.9, count: 32000, source: 'App Store & Google Play' },
|
||||
welcomeBonus: { code: 'VIP50', title: '50 Bonus Credits', description: '50 Free HD runs' },
|
||||
features: ['Batch processing', '4K export'],
|
||||
};
|
||||
|
||||
describe('PostResultAppHandoff (Post-Result App Conversion)', () => {
|
||||
it('renders app name, rating, store buttons, and voucher code', () => {
|
||||
it('renders app name, rating, store buttons, and platform information', () => {
|
||||
const html = renderToString(
|
||||
<PostResultAppHandoff
|
||||
tool={mockTool}
|
||||
@@ -50,7 +49,6 @@ describe('PostResultAppHandoff (Post-Result App Conversion)', () => {
|
||||
expect(html).toContain('Portrait Studio AI');
|
||||
expect(html).toContain('App Store');
|
||||
expect(html).toContain('Google Play');
|
||||
expect(html).toContain('VIP50');
|
||||
expect(html).toContain('4.9');
|
||||
expect(html).toContain('Unlimited 4K Batch Runs');
|
||||
expect(html).toContain('Scan with Phone Camera');
|
||||
@@ -69,7 +67,7 @@ describe('PostResultAppHandoff (Post-Result App Conversion)', () => {
|
||||
expect(html).toContain('Portrait Studio AI');
|
||||
expect(html).toContain('App Store');
|
||||
expect(html).toContain('Google Play');
|
||||
expect(html).toContain('TRYWEB50');
|
||||
expect(html).toContain('Official Mobile App');
|
||||
});
|
||||
|
||||
it('displays post-download celebratory toast when hasDownloaded is true', () => {
|
||||
@@ -84,6 +82,6 @@ describe('PostResultAppHandoff (Post-Result App Conversion)', () => {
|
||||
);
|
||||
|
||||
expect(html).toContain('HD result saved!');
|
||||
expect(html).toContain('50 CREDITS UNLOCKED');
|
||||
expect(html).toContain('4K UNLIMITED READY');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user