52 Commits
Author SHA1 Message Date
GarboMuffin d65e0b6ce2 Remove test for feature that doesn't exist anymore 2023-06-18 18:51:45 -05:00
GarboMuffin f15b05f735 Show a notice if the sound is in stereo 2022-08-05 17:42:09 -05:00
Thomas Weber de5359b674 Extract real extension URL from scratchx.org URLs 2022-07-09 22:02:29 -05:00
Thomas Weber 339c709c5b Get unit tests to mostly work, disable ones that can't seem to work (temporarily, I hope) 2021-01-12 21:35:54 -06:00
Ray Schamp b52376ac2e Merge branch 'develop' into revert-5437-revert-4809-refactor-file-uploader 2021-01-11 14:49:04 -05:00
apple502j f034dec5d0 Fix test 2020-02-28 23:00:06 +09:00
Benjamin Wheeler d82ed25b8a Revert "Revert "refactor SB* file uploader into top-level HOC"" 2020-02-11 12:05:36 -05:00
Benjamin Wheeler af4ad81811 Revert "refactor SB* file uploader into top-level HOC" 2020-02-06 11:33:03 -05:00
Ben Wheeler f2291d963c continuing sb file uploader refactor into hoc
draft of refactor to make custom confirm modal work for upload; need to further edit sb-file-uploader

Add support for custom confirm modal to sb-file-uploader

Show custom confirm modal when confirming project upload

got custom upload refactor of file upload working, and tested failure case

cleaned up debug code, make project file upload work

simplified logic around canceling file upload

removed old sb-file-uploader.jsx; fixed linter errors

reverted two components to use old strings, not shared

(can do that refactor another time)

removed unnecessary confirm container

removed stray comment

moved, updated sb file uploader tests, related project state tests

removed custom modal, to reduce scope of changes

sb file uploader test uses intl
2020-01-28 14:57:09 -05:00
Paul Kaplan fcbf1b051b Make submitNewSamples async and use promises 2020-01-09 12:12:41 -05:00
Ben Wheeler 22e2c17ff4 don’t pass onUpdateProjectTitle below titledHIC 2019-10-17 13:26:33 -04:00
rschamp 3c6bfe0607 Add Jest-specific linting rules
Adding this caught a couple of important things:
- The sound integration tests have a `.only` in them
- The project-saver-hoc tests had two tests with the same description, causing possible confusion if that test broke
2019-08-01 11:31:01 -04:00
Eric Rosenbaum 7d1dfb67b7 Merge pull request #4974 from ericrosenbaum/feature/sound-editor-selection4
Sound editor update: selection-based editing
2019-07-30 15:27:04 -04:00
Chris Garrity 415ecee8ba Update tests 2019-07-22 12:02:14 -04:00
Eric Rosenbaum fdd4b61d5d Revert and fix tests
This reverts commit 42ff50300cff7558fd03cdebb757eca8caf85199.
2019-07-09 15:32:29 -04:00
Eric Rosenbaum 0d88c7755b Update tests 2019-07-09 15:32:28 -04:00
Ben Wheeler 516baedad9 added tests, rewrote menu-bar-hoc to accomodate tests 2019-05-01 07:02:07 -04:00
Paul Kaplan 127e1a9632 Add container test for slider prompt
A few modifications were made while making this test:
- Change the "defaultMin/Max" to just be called "min/max", and pass the state through to make the inputs a controlled component. It is best to make form elements controlled since it makes it more clear how data flows.
- Force the passed in data to always be of type `number`, and transform it in the constructor to always be of type `string`, and change the onOk to transform it back to a number. With inputs, it is best to be very explicit about data types, and make it clear where you are using strings and where you are using numbers.
- Do not reset the state to `0` when the field is blank, that makes typing into it very hard (only applies after making it a controlled field)
- Use consistent booleans. Since the VM uses `isDiscrete`, change it so we do not use any opposite flags (like `decimal`) for clarity.

Writing tests for this really helped me understand the behavior. If you read through the test descriptions and see anything you did not intend, let me know.
2019-03-11 10:51:50 -04:00
Karishma Chadha 41d910057b Update unit test that was checking that .sb files don't get project titles extracted. 2018-12-26 09:22:51 -05:00
Paul Kaplan 43959e4205 Add "SaveStatus" component to control showing "Save Now" and save alerts 2018-12-05 10:46:22 -05:00
Paul Kaplan 37aa553859 Remove unused containers.
The functionality was all moved to the Controls container, these containers are no longer used
2018-11-27 11:22:53 -05:00
Ben Wheeler 28cc6d45ac cleaned up test file 2018-10-17 16:49:25 -04:00
Ben Wheeler 76e11e0ed7 got sb-file-uploader tests working 2018-10-17 15:50:54 -04:00
Ben Wheeler bde0f7aa1c r 2018-10-17 15:50:54 -04:00
Ben Wheeler f760e15e76 made upload title extraction into separate testable function; tests not working yet 2018-10-17 15:50:54 -04:00
Karishma Chadha b5e9794232 Fix unit tests 2018-10-15 18:32:03 -04:00
DD Liu 8bfaf69d6e Inject fonts thumbnails (#2948) 2018-08-23 14:57:08 -04:00
Karishma Chadha 718fb7255d Fix up tests. 2018-08-23 11:03:29 -04:00
Paul Kaplan 6ee0a343ac Make costume, sound and sprite tiles draggable. 2018-05-23 11:12:06 -04:00
chrisgarrity 44c76e5774 Combine GUI reducers
* Export initial states for each reducer
* combine all gui reducers (excludes scratchPaint and intl)
* combine all initial states to create default guiState for preloading in www
* expect all of the gui state to be accessible at `state.scratchGui`
2018-05-21 16:54:19 -04:00
DD cff8517bd3 fix tests 2018-02-23 16:04:16 -05:00
Paul Kaplan fcc5f9f718 Fix snapshots 2018-02-09 09:48:46 -05:00
Andrew Sliwinski 443966ec0d Add mock from 'react-ga' to unit tests 2018-01-12 15:51:59 -05:00
Paul Kaplan 084deee318 Play on undo and redo 2017-11-21 09:26:50 -05:00
Paul Kaplan 1e26992f45 Fix enzyme tests 2017-10-13 12:57:19 -04:00
Paul Kaplan b3b254bec9 Fix linting 2017-08-18 15:15:00 -04:00
Paul Kaplan 61e9c25468 Merge branch 'develop' into safari-audio 2017-08-18 15:05:58 -04:00
Ray Schamp 7fc0858dcc Update linting for tests to match src 2017-08-17 10:12:43 -04:00
Paul Kaplan 7c42b525e5 Update audio effects mock to use callback API 2017-08-15 09:30:34 -04:00
Paul Kaplan 4ad873020f Merge pull request #605 from paulkaplan/context-menu
Context menu
2017-08-14 13:49:18 -04:00
Paul Kaplan b03e23740d Merge branch 'develop' into sound-editor--effects-backend 2017-08-11 10:30:45 -04:00
Paul Kaplan 46b1f85d9f Update jest tests for intl and contextmenu 2017-08-10 10:08:05 -04:00
Paul Kaplan a1c9c203df Add undo/redo functionality and tests 2017-08-05 13:23:18 -04:00
Paul Kaplan d1014d299d Add audio effects and container test 2017-08-04 12:21:45 -04:00
Paul Kaplan c72bc657ac Remove unused variable 2017-08-03 13:10:22 -04:00
Paul Kaplan 5d8da5052a Add effect buttons and tests for the component 2017-08-03 13:10:22 -04:00
Paul Kaplan b6f5a6e33c Internationalize and update testing to handle react-intl 2017-08-02 15:40:02 -04:00
Paul Kaplan b9c6f3fb44 Add trimming and tests to the sound editor 2017-08-01 15:36:37 -04:00
Paul Kaplan f6cf7a5816 Update require to import for test files 2017-07-21 09:04:29 -04:00
Susie Sahim 821df8a226 Fix lint 2017-06-29 20:38:47 -07:00