Match the literal copy the TikTok app reviewer looks for during the Content Posting API audit, per the Mixpost playbook (the only public account of how to pass). - Privacy dropdown placeholder: "Select who can view this post" - Tooltip on interaction toggles disabled by creator: "Turned off in your TikTok account settings" - Render the "may take a few minutes" notice that was translated but never displayed (processing_hint) Mirror both i18n changes in pt-BR and es. Add a feature test that locks the literal strings so they cannot drift before the next review cycle.
35 lines
1.5 KiB
PHP
35 lines
1.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
test('tiktok english strings match the wording the app reviewer expects', function () {
|
|
expect(__('posts.form.tiktok.privacy_placeholder', [], 'en'))
|
|
->toBe('Select who can view this post');
|
|
|
|
expect(__('posts.form.tiktok.interaction_disabled_by_creator', [], 'en'))
|
|
->toBe('Turned off in your TikTok account settings');
|
|
|
|
expect(__('posts.form.tiktok.processing_hint', [], 'en'))
|
|
->toBe('After publishing, it may take a few minutes for the content to process and appear on your TikTok profile.');
|
|
|
|
expect(__('posts.form.tiktok.compliance_incomplete', [], 'en'))
|
|
->toBe('You need to indicate if your content promotes yourself, a third party, or both.');
|
|
|
|
expect(__('posts.form.tiktok.privacy.private_disabled_branded', [], 'en'))
|
|
->toBe('Branded content visibility cannot be set to private.');
|
|
|
|
expect(__('posts.form.tiktok.promotional_organic_title', [], 'en'))
|
|
->toBe('Your photo/video will be labeled as "Promotional content".');
|
|
|
|
expect(__('posts.form.tiktok.promotional_paid_title', [], 'en'))
|
|
->toBe('Your photo/video will be labeled as "Paid partnership".');
|
|
|
|
expect(__('posts.form.tiktok.compliance.agree', [], 'en'))
|
|
->toBe("By posting, you agree to TikTok's");
|
|
|
|
expect(__('posts.form.tiktok.compliance.music_usage', [], 'en'))
|
|
->toBe('Music Usage Confirmation');
|
|
|
|
expect(__('posts.form.tiktok.compliance.branded_policy', [], 'en'))
|
|
->toBe('Branded Content Policy');
|
|
});
|