mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(media-upload): remove Postimages provider
Postimages cannot support WebView automation (site blocks automated uploads). Imgur works reliably. Keep only Catbox and Imgur as supported providers.
This commit is contained in:
@@ -9,7 +9,6 @@ describe('media-upload-recipes', () => {
|
||||
it('exports MEDIA_UPLOAD_RECIPES with expected providers', () => {
|
||||
expect(Object.keys(MEDIA_UPLOAD_RECIPES)).toContain('catbox');
|
||||
expect(Object.keys(MEDIA_UPLOAD_RECIPES)).toContain('imgur');
|
||||
expect(Object.keys(MEDIA_UPLOAD_RECIPES)).toContain('postimages');
|
||||
});
|
||||
|
||||
it('validateRecipes passes for current recipes', () => {
|
||||
@@ -28,9 +27,8 @@ describe('media-upload-recipes', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('imgur and postimages have 45s timeout (parity with Android)', () => {
|
||||
it('imgur has 45s timeout (parity with Android)', () => {
|
||||
expect(MEDIA_UPLOAD_RECIPES.imgur.timeoutMs).toBe(45_000);
|
||||
expect(MEDIA_UPLOAD_RECIPES.postimages.timeoutMs).toBe(45_000);
|
||||
});
|
||||
|
||||
it('selector fallback order: generic file input before provider-specific', () => {
|
||||
|
||||
Reference in New Issue
Block a user