Commit graph

145 commits

Author SHA1 Message Date
Artur Paikin
95d78620e3 https fixes test? 2018-01-05 16:03:28 -05:00
Artur Paikin
86b3d3c640 update endtoend test selectors 2017-12-20 00:45:36 -05:00
Artur Paikin
85fe3442e4 remove .js from import 2017-12-09 13:21:20 -05:00
Artur Paikin
ed9aa1a537 🚨this.core to this.uppy everywhere
danger again
2017-12-08 17:34:33 -05:00
Artur Paikin
b3a9a4bdb7 remove old acceptance tests 2017-11-28 19:12:00 -05:00
Artur Paikin
d40db2874e fix Plugin path in tests 2017-11-28 19:11:15 -05:00
Artur Paikin
65f0553bd3 add iOS and Android 2017-11-08 16:43:29 -05:00
Artur Paikin
3e950dfe51 add user/key back 2017-11-07 15:17:33 -05:00
Artur Paikin
7d881151a4 try removing sauce connect, user and key 2017-11-07 15:01:04 -05:00
Artur Paikin
b5f15978d5 Revert "is this starting another tunnel?"
This reverts commit 6c76b01afb.
2017-11-07 14:58:28 -05:00
Artur Paikin
6c76b01afb is this starting another tunnel? 2017-11-07 14:56:28 -05:00
Artur Paikin
da0efb48e0 add tunnel-identifier and build: job number 2017-11-07 14:30:37 -05:00
Artur Paikin
d1fe35f501 configs for local and remote sauce tests 2017-11-07 14:05:05 -05:00
Artur Paikin
87f6b88aca rewrite 3 tests: tus, xhr and i18n 2017-11-07 13:53:36 -05:00
Artur Paikin
8b4f8d4da0 fix tests for locale 2017-10-03 16:42:08 -04:00
Artur Paikin
cac58579b6 fix i18n test 2017-10-03 14:28:11 -04:00
Artur Paikin
561c16aa0a update DragDrop acceptance test 2017-10-03 14:17:19 -04:00
Artur Paikin
5c6b1fc607 don’t run the fallback test 2017-10-03 12:07:18 -04:00
Artur Paikin
cc14a46057 no win xp in tests 2017-09-29 23:36:49 -04:00
Artur Paikin
1d0e432542 IE6 --> IE8, SauceLabs don’t seem to offer Win XP and IE 6 anymore: https://saucelabs.com/platforms 2017-09-29 17:31:43 -04:00
Rich Willars
540c02b6b0 Add jest tests
Adds tests for src/core/Utils

Ports translator tests to jest

Adds tests for core/index

Added code coverage report

Adds tests for core/UppySocket

Adds tests to src/core and cleanup of test directory

Switched from import to require as the project supports node v4

Runs tests using Babel for backwards compatibilty

Adds src/core state tests

Adds src/core reset & close tests

Updates stagnant snapshot

Adds tests for preprocessors and postprocessors in src/core/Core.js

Adds tests for uploaders and metadata in src/core/Core

Adds tests for adding and removing files in src/core/Core

Adds test for getFile
2017-09-08 17:18:58 +01:00
Renée Kooi
5750efab90
transloadit: Add test for alwaysRunAssembly 2017-08-24 13:49:34 +02:00
Renée Kooi
ffb36428f3
transloadit: Fix crash when no files are being uploaded 2017-08-22 14:15:06 +02:00
Artur Paikin
3f64c367a3 rename window test/debug variables
now it’s window._uppy and addFile is window._uppy.addFile
2017-08-07 16:54:22 +02:00
Renée Kooi
dde92f80a6
Transloadit: test for dynamic params 2017-07-11 20:35:39 +02:00
Renée Kooi
c58d4338a1
Transloadit: Add test for params validation after getAssemblyOptions 2017-07-11 20:35:39 +02:00
Gavin Boulton
4bc68694c4 Allow configurable FileInput input name
Allow a configurable input name in the FileInput plugin with a default of `files[]`. This functionality matches the Multipart plugin.

Add basic unit tests for `inputName` FileInput constructor option.
2017-06-02 10:54:22 +01:00
Artur Paikin
dc65688b48 add debug logging in i18n test 2017-05-13 01:21:31 -04:00
Artur Paikin
ae24a1c518 slightly improve multipart tests 2017-05-12 23:40:03 -04:00
Artur Paikin
a91ecb59e9 is that it 2017-05-02 12:47:46 -04:00
Renée Kooi
9a84327447 Fix Transloadit plugin tests. (#180) 2017-04-28 11:43:52 +02:00
Renée Kooi
bc7f703916 Transloadit plugin, closes #173 (#177)
* transloadit: Add barebones base plugin.

* tus: Add `uninstall` method.

* transloadit: Implement creating assemblies and hacky tus-uploading.

* transloadit: Add test file (Just checking options errors for now)

* transloadit: Link to templates overview page in `templateId` error.

* transloadit: Use dynamic tus endpoint from assembly result.

* core: Implement uploader pre- and postprocessors and async flow.

* tus: Merge in tus options from `file` objects.

This will allow preprocessor plugins to configure tus uploads.

* transloadit: Implement as a `preprocessor` handler.

* transloadit: Add status socket connection.Add `wait` option to wait for assembly to finish before resolving.

* dashboard: Log errors to console if the upload fails at any point.

* transloadit: Add `waitForEncoding`, `waitForMetadata` options instead of just `wait`.

* transloadit: Merge in params from `params` option when creating an assembly.

* transloadit: Docc why we set the `file.meta` property.

* transloadit: Support the API key being passed in via `params.auth.key`.

This way developers can dump a JSON payload for transloadit into the
`params` option. That'd be especially useful for `signature`s.

* transloadit: Only add `template_id` param to assembly if a `templateId` option is given.

* transloadit: Add a `signature` pass-thru option.

* transloadit: Remove `key` and `templateId` options--use `params` instead.

* Transloadit: Throw a useful error when `params` is an invalid JSON string.

* Transloadit: Check for existence of `params` before validity.

* Transloadit: Fix adding post-processor.

* Transloadit: No need to get assembly status after creating one.

* Transloadit: Add logs in a few places

* Transloadit: Get assembly status after upload is complete.

It's unused for now, but we should use eg. the results status to
provide feedback, especially if the assembly failed. Maybe the
`uploads` key in the result will also contain useful data if the
uploads fail?

* Transloadit: Add a pass-thru `fields` option…

This one should be runtime-configurable in some other way too.
Maybe by passing a <form /> element, or with the MetaData plugin…

* Transloadit: Always connect to the assembly status socket.

* Transloadit: Emit a `transloadit:result` event for assembly results.

But only when `waitForEncoding` is true!

* transloadit: Some doc comments for the main classes
2017-04-26 17:02:29 +02:00
Artur Paikin
086fe423d9 fix DragDrop acceptance test 2016-12-19 16:13:17 -05:00
Artur Paikin
2cc3b83a98 fix core test to account for that new Uppy() is same as Uppy() 2016-11-21 14:05:28 -06:00
Artur Paikin
75c98ed16c fix translation test 2016-11-15 10:20:48 -05:00
Artur Paikin
42fa28f7c0 update multipart website example and acceptance test 2016-10-26 01:24:29 -04:00
Artur Paikin
a88331dfbe disable autoProceed test for now too 2016-10-17 21:40:04 -04:00
Artur Paikin
7eb4a53e4c try the tunnel now and fallback-test first 2016-08-23 12:21:55 -04:00
Artur Paikin
42411272e2 now let’s try moving fallback test to the end 2016-08-23 11:30:39 -04:00
Artur Paikin
3005b69c7a try now with sauce-connect tunnel 2016-08-23 11:14:31 -04:00
Artur Paikin
a5b84f7e65 run fallback test first 2016-08-23 10:58:53 -04:00
Artur Paikin
c3544d2c21 Large test refactor 2016-08-22 23:41:29 -04:00
Artur Paikin
5b1cf8b9fb remote host 2016-08-22 20:38:17 -04:00
Artur Paikin
3cb1520d24 let’s try disabling sauce connect 2016-08-22 20:30:41 -04:00
Artur Paikin
510af9cc72 try with less tests 2016-08-22 20:11:50 -04:00
Artur Paikin
ad3da57a62 try now 2016-08-22 19:10:36 -04:00
Artur Paikin
b4f532bd20 ok, now run all tests and the fallback one 2016-08-22 15:16:55 -04:00
Artur Paikin
c6b5809242 Revert back to api2.transloadit.com and run just the fallback test 2016-08-22 14:33:48 -04:00
Artur Paikin
aef06d386b was it the path? 2016-08-21 22:25:36 -04:00
Artur Paikin
1f51395aa6 Run fallback test now 2016-08-21 21:36:53 -04:00