Commit Graph
55 Commits
Author SHA1 Message Date
chrisgarrity fdfd9d64f2 re-refactor after fixing merge conflicts 2018-11-19 09:18:38 -05:00
Paul Kaplan f98831e311 Support multiple commands from cloud data server 2018-11-15 16:49:15 -05:00
Paul Kaplan bb6eb6b36d Merge pull request #3749 from kchadha/create-cloud-var
Create cloud vars
2018-11-15 09:17:32 -05:00
Ray Schamp 70a622280f Fix tests 2018-11-15 11:22:40 +00:00
Karishma Chadha 4ecd312954 Add unit tests for cloud manager hoc. 2018-11-14 21:37:39 -05:00
chrisgarrity c9b87382db Merge pull request #3694 from chrisgarrity/feature/3643-all-tutorials
Start Gui with Tutorials Library open for HoC
Also export Tutorial Card initialization for www.
2018-11-12 10:12:07 -05:00
chrisgarrity 2e08c39213 Add tests 2018-11-08 11:18:13 -05:00
Ben Wheeler 82578d3d6f added tests for alerts 2018-11-08 08:02:30 -05:00
Ben Wheeler 7c1ecec840 got tests passing 2018-11-08 08:02:30 -05:00
Ray Schamp 554df59547 Merge pull request #3619 from paulkaplan/fix-cloud-backpack
Fix backpack crashing the GUI when trying to store a cloud variable
2018-11-08 10:16:52 +00:00
Paul Kaplan e453fe2c00 Fix problem with updating cloud vars to zero.
Added a unit test and covered the other case (not used) where you might be trying to update the index zero of a list
2018-11-05 15:17:40 -05:00
Paul Kaplan 554343968b Add unit test for base64 encoding 2018-11-02 16:03:22 -04:00
Ben Wheeler 5511c7dead added project-saver-hoc tests 2018-10-28 01:02:35 -04:00
Ray Schamp 3b90ac207b Return early if no query param
This prevents a tutorial with no urlId being returned in the case of no tutorial query param

Nice catch @kchadha!
2018-10-25 19:22:16 +01:00
Ray Schamp e2d5a88549 Use names for tutorial URL ids 2018-10-25 18:07:12 +01:00
Ben Wheeler 80f4e01d47 remix and save as a copy functionality
made remixing, saving as copy states; made project state naming more consistent

changed meaning of canCreateNew to true creation

fixed project-saver-hoc test

removed Remix option from standalone player menu; renamed canSaveAsCopy to canCreateCopy

added parenthesis missing from rebase

fixed create new test
2018-10-24 11:29:35 -04:00
Ben Wheeler f9780fb146 removed commented out test 2018-10-19 10:19:46 -04:00
Ben Wheeler 37e2bf3212 added one more vm-manager-hoc.test fix 2018-10-19 08:02:41 -04:00
Ben Wheeler b0c4bee84b handle many modes of new project creation
responding to canSave without needing canSaveNew prop
removed canSaveNew
added default for onUpdateProjectId
removed conflict files erroneously added
don't pass down onError
got tests passing
better creating and saving logic and names
2018-10-18 17:46:30 -04:00
Andrew Sliwinski 2ec69f1890 Merge pull request #3382 from chrisgarrity/feature/3230-translate-videos
Add video translation
2018-10-18 08:19:32 -04:00
Andrew Sliwinski 41fc932ebb Merge pull request #3366 from fsih/preloadFonts
Preload fonts
2018-10-18 08:19:03 -04:00
DD 80bee42410 Remove child rendered test and add no load test if fonts are not loaded 2018-10-17 14:33:21 -04:00
Karishma Chadha e7ea9558ed Merge pull request #3342 from kchadha/selection-state-watermark
Add sprite/stage watermark to the blocks workspace.
2018-10-17 13:57:42 -04:00
Benjamin Wheeler e2a280eed8 Merge pull request #3360 from benjiwheeler/project-state-reducer-tests
project state reducer tests, bug fixes
2018-10-17 07:03:47 -04:00
DD b4395d7905 Fix tests 2018-10-16 19:39:36 -04:00
Karishma Chadha b5e9794232 Fix unit tests 2018-10-15 18:32:03 -04:00
Ben Wheeler f89585728c changed projectId int to string 2018-10-15 15:50:26 -04:00
chrisgarrity 2bf7c91fe4 Add video translation
* Look up video id based on locale.
* add japanese video ids
* add test
2018-10-15 15:26:27 -04:00
Ray Schamp 03b440beb4 Merge pull request #3350 from rschamp/hoc-tests
Add project loading HOC tests
2018-10-15 10:57:43 +01:00
Ray Schamp 1e086d9712 Improve ProjectFetcherHOC test
This ensures that the reducer is actually called with the project data that storage loaded
2018-10-11 18:29:00 +01:00
chrisgarrity 8ffae77ffe Merge pull request #3188 from ianobermiller/issue-3167-invalid-tutorial-id
Robust URL handling for tutorial and locale
2018-10-11 13:28:03 -04:00
Ray Schamp 616281ea35 Add VMManagerHOC tests 2018-10-11 18:22:17 +01:00
Ray Schamp 739ee70464 Remove unnecessary upate() 2018-10-11 18:21:54 +01:00
Ray Schamp 5180a77242 Fix ProjectFetcherHOC tests 2018-10-11 15:27:54 +01:00
Ray Schamp 35435bd9c6 Lint 2018-10-11 14:47:52 +01:00
Ray Schamp bf74b3ef44 Fix HashParserHOC tests 2018-10-11 14:46:01 +01:00
Ben Wheeler c92db1d539 renamed several components and hoc's 2018-10-08 18:02:57 -04:00
Ian Obermiller 6043fb69df Robust URL handling for tutorial and locale 2018-10-07 20:24:08 -07:00
chrisgarrity 102d3d7e79 Localize default project (temporary solution) 2018-09-14 16:11:46 -04:00
Ray Schamp d014f1ee3a Fix ProjectLoaderHOC tests
Remove the default prop test because the default projectId prop comes from redux now, so it doesn't make sense to test the default

Lint
2018-08-29 18:29:14 -04:00
chrisgarrity 1083b6241a Added automatic detection of locale from browser langauge
Locale detection function that checks browser setting and lets URL parameter (locale= or lang=) override the browser setting.
2018-06-24 13:07:56 -04:00
chrisgarrity a04554229f Initial version of loading or switching language.
Add `?locale=<localecode>` to load in a new langage.
Add `?enable=language` to enable the language selector
Or combine the two: `?enable=language&locale=<localecode>`
Still accepts a hash, but requires that the hash be a sequence of digits.

Added new locales reducer to gui:
- initializes default  react-intl/localeData
- initializes default locale messages for all locales
- default locale is ‘en’ (can be overridden by URL)

Removed dependency on react-intl-redux, added ConnectedIntlProvider (uses correct locale messages from redux based on current locale)
2018-06-19 15:40:47 -04:00
Paul Kaplan 98b0765051 Make costume and sound tabs sortable 2018-06-13 11:07:25 -04:00
chrisgarrity 37f98f6099 Fix up comments
- better split of hash-parser/project-loader unit tests.
2018-05-14 17:17:39 -04:00
chrisgarrity 0fa62fc05c Split project-loader-hoc
The project loader that is exported with GUI just expects to be passed projectId as a prop, and it manages loading project data.

The part of the project loader that watches for URL hash changes for the playground is a new HOC that is only used in the various playground examples.
2018-05-10 09:31:50 -04:00
Andrew Sliwinski 443966ec0d Add mock from 'react-ga' to unit tests 2018-01-12 15:51:59 -05:00
Ray Schamp c3ebfa5c6d Mock responsibly
/ht @paulkaplan
2017-11-03 09:28:56 -04:00
Ray Schamp 0e0c689e22 Fix tests
Previously we tested the ProjectLoader helper object, but now all loading is confined to storage. Unfortunately I wasn't able to get enzyme to wait for the storage promise to resolve within componentDidUpdate, so I can't test the actual results of storage.load, just what it was called with.
2017-11-03 09:28:56 -04:00
Ray Schamp c5404bffa7 Update enzyme usage for 3.1.0
Add a setup file that configures the React adapter. Fix one deprecated usage for ProjectLoaderHOC tests.

There are some tests still broken, but these weren't called out by Enzyme.
2017-10-13 12:56:44 -04:00
Ray Schamp 4ac3dd68f0 Add tests for the ProjectLoaderHOC 2017-08-17 10:12:56 -04:00