Commit graph

125 commits

Author SHA1 Message Date
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
Artur Paikin
0396b200df update fallback test and don’t run it yet 2016-08-21 21:33:27 -04:00
Artur Paikin
dfa5ced713 trying some more 2016-08-21 20:14:40 -04:00
Artur Paikin
43726e0285 add steps to see what’s what 2016-08-21 20:05:42 -04:00
Artur Paikin
29667e15af going crazy 2016-08-21 19:48:23 -04:00
Artur Paikin
5d5a7fff8b try to driver.switchTo().alert().dismiss() earlier 2016-08-21 19:38:35 -04:00
Artur Paikin
2af5b7b813 unexpectedAlertBehaviour: dismiss again 2016-08-21 13:46:21 -04:00
Artur Paikin
3cd8d7aebf move alert dismiss command to isRedirectedAfterUpload 2016-08-21 13:27:50 -04:00
Artur Paikin
e3a5e6b156 driver.switchTo().alert().accept() 2016-08-21 12:21:25 -04:00
Artur Paikin
59fb97c2f2 Revert "unexpectedAlertBehaviour: accept"
This reverts commit c6d48d6e48.
2016-08-21 12:00:05 -04:00
Artur Paikin
c6d48d6e48 unexpectedAlertBehaviour: accept 2016-08-21 11:52:48 -04:00
Artur Paikin
389d74cdff add customTests back 2016-08-21 11:27:24 -04:00
Artur Paikin
5672bde362 disable fallback test 2016-08-21 11:16:16 -04:00
Artur Paikin
8a7a4d6ebb let’s try remote for IE 2016-08-21 11:03:07 -04:00
Artur Paikin
e52c606d0e Add the fallback test: fall back to regular <form> upload when JS is not working, or not loaded yet, or browser is not supported by Uppy 2016-08-21 02:20:33 -04:00
Artur Paikin
0af35afd65 Add rough support for custom tests (different platforms / only ran once kind of test) 2016-08-21 02:19:55 -04:00
Artur Paikin
a6ed320b4e Kick Travis again 2016-07-08 22:53:42 -04:00
Artur Paikin
c50928b43d Disable Safari and Edge 2016-07-08 15:43:53 -04:00
Artur Paikin
936392d7ed Local test on Travis? 2016-07-08 15:34:35 -04:00
Artur Paikin
c15decc204 Improve acceptance tests — adding files 2016-06-21 16:54:07 -07:00
Artur Paikin
626addaaa9 Test update 2016-06-21 16:37:19 -07:00