Commit Graph
449 Commits
Author SHA1 Message Date
Chris Willis-Ford dc49c0ebe4 Merge branch 'develop' into e16n 2019-06-18 16:06:46 -07:00
Christopher Willis-Ford 7755f76215 simplify MockBlock construction 2019-06-18 14:15:43 -07:00
Christopher Willis-Ford 6e44bfea95 fix lint errors in define-dynamic-block.test.js 2019-06-18 11:37:17 -07:00
Paul Kaplan 1a588880bf Merge pull request #4901 from paulkaplan/no-videos-on-desktop
Use a "title card" instead of video if using Scratch Desktop
2019-06-05 16:10:16 -04:00
Paul Kaplan 13e324b52d Use title card instead of video if using scratchDesktop flag 2019-06-05 12:53:32 -04:00
Paul Kaplan 637b9fd225 Merge pull request #4832 from paulkaplan/do-not-select-stage
Make surprise and library backdrop additions NOT select the stage
2019-06-05 10:45:34 -04:00
Ben Wheeler fd3045eb9d also turn off examples tests that load remote project 2019-06-04 11:40:03 -04:00
Christopher Willis-Ford a6fe8585fb add unit tests for defineDynamicBlock 2019-06-03 13:04:15 -07:00
Ben Wheeler 8128902cd6 fixed project loading test 2019-05-30 18:52:33 -04:00
Bryce Taylor ca8caa8504 Merge pull request #4871 from BryceLTaylor/Stabilize-Integration-Tests
Stabilize integration tests
2019-05-29 15:40:02 -04:00
Benjamin Wheeler 339dfe0b08 Merge pull request #4846 from paulkaplan/update-builtin-assets
Update the built-in SVG assets for the default project
2019-05-29 15:11:15 -04:00
BryceLTaylor b9cefd325b Remove unused reference to findByText in integration tests 2019-05-29 14:45:57 -04:00
BryceLTaylor fa974c68bd Remove WaitUntilGone function from integration tests
These were causing the tests to fail and should be fixed by the update to FindByXpath function.
2019-05-29 14:23:50 -04:00
BryceLTaylor 3c47e0e040 Make Find by Xpath ensure element is visible in integration tests 2019-05-29 14:23:50 -04:00
Christopher Willis-Ford 796339dcfe simplify SeleniumHelper timeout options 2019-05-24 09:35:44 -07:00
Paul Kaplan eb74d6c033 Include a unit test to ensure default project assets are included 2019-05-23 11:22:36 -04:00
Christopher Willis-Ford 1b055af545 add timeouts & messages to all driver.wait calls 2019-05-22 18:25:45 -07:00
Paul Kaplan 77974839b0 Make surprise and library backdrop additions NOT select the stage 2019-05-21 10:46:05 -04:00
Ben Wheeler 516baedad9 added tests, rewrote menu-bar-hoc to accomodate tests 2019-05-01 07:02:07 -04:00
Paul Kaplan 9d185bd6c8 Merge pull request #4753 from paulkaplan/project-save-trigger
Allow GUI consumer to receive a function for triggering saves.
2019-04-23 08:32:36 -04:00
Paul Kaplan a0745e4f40 Allow GUI consumer to receive a function for triggering saves.
Use the same implementation as onSetProjectThumbnailer which does the same thing for getting a thumbnail externally.
2019-04-19 09:19:00 -04:00
Benjamin Wheeler f8243eae9e Merge pull request #4700 from benjiwheeler/upload-in-place
upload in current project id, rather than creating new project id
2019-04-17 14:54:51 -04:00
Ben Wheeler c064eaed4e upload in current project id, rather than creating new project id 2019-04-16 23:34:07 -04:00
Paul Kaplan 0fbbf55b51 Revert "Load library images through storage" 2019-04-11 11:13:34 -04:00
Chris Willis-Ford 8a1b104f28 Merge pull request #4644 from cwillisf/load-library-images-through-storage
Load library images through storage
2019-04-10 11:35:46 -07:00
Paul Kaplan c5290a2640 Use an actual url for backpack host so storage doesnt explode 2019-04-10 09:19:13 -04:00
Christopher Willis-Ford 1fd9a1f689 Merge branch 'develop' into load-library-images-through-storage 2019-03-14 11:49:47 -07:00
Chris Willis-Ford 33f3d1d79b Merge pull request #4645 from cwillisf/add-telemetry-hooks
Add telemetry hooks
2019-03-14 10:47:59 -07:00
Chris Willis-Ford f773ee2dab Merge branch 'develop' into load-library-images-through-storage 2019-03-13 16:33:38 -07:00
chrisgarrity 3e33c10b04 Fix mock store for project-saver-hoc test
Account for the addition of locale prop expected in mapStateToProps.
Note: if/when the telemetry code gets moved into its own hoc, the prop should get removed, and the test should get updated as well.
2019-03-12 16:13:44 -07:00
Christopher Willis-Ford face0d20d4 Test library icon rotation by comparing src over time 2019-03-12 15:01:50 -07:00
Paul Kaplan 158409d4d8 Merge pull request #4568 from apple502j/slider-decimal
Slider range change with decimal value support
2019-03-11 11:19:49 -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
Paul Kaplan 1e532745b7 Add a selenium test for slider range 2019-03-11 09:44:56 -04:00
picklesrus 0dd0fd8e7a Merge pull request #4537 from picklesrus/init-locale-vm
Fixes #4253 by telling the vm the langauge when it is initialized.  B…
2019-02-27 16:37:31 -05:00
Paul Kaplan 6d5183f99d Merge pull request #4567 from paulkaplan/project-thumbnailer
Add a way for GUI consumer to retrieve snapshots of the stage
2019-02-20 13:39:30 -05:00
Paul Kaplan d301794463 Add a way for GUI consumer to retrieve snapshots of the stage 2019-02-15 14:21:37 -05:00
Paul Kaplan 0f803dfc41 Request a toolbox refresh after switching between tabs to fix #4561 2019-02-15 09:10:42 -05:00
Paul Kaplan 208060e441 Merge pull request #4534 from paulkaplan/importing-alert
Show an "Importing..." alert during file import
2019-02-13 16:30:28 -05:00
Paul Kaplan 59ca7fc771 Merge pull request #4529 from paulkaplan/support-is-discrete-sliders
Support isDiscrete sliders
2019-02-13 12:58:38 -05:00
Paul Kaplan 7847f9e775 Show an "Importing..." alert during file import 2019-02-13 10:21:48 -05:00
picklesrus 1aa241749b Fix up the tests and add a couple checks. 2019-02-12 11:41:32 -05:00
Paul Kaplan ebd372a090 Update to develop and remove try-it steps from new tests 2019-02-12 09:22:24 -05:00
Paul Kaplan 24ca96971e Merge branch 'develop' into prompt-before-upload-replace 2019-02-12 09:21:53 -05:00
Paul Kaplan 4500c4f781 Remove more try-it steps 2019-02-12 09:05:05 -05:00
Paul Kaplan cae9d9a683 Merge branch 'develop' into nj/ui-changes 2019-02-12 09:04:31 -05:00
Paul Kaplan 9bef38e977 Remove try-it step from more integration tests 2019-02-12 08:53:28 -05:00
Paul Kaplan d51c984b90 Add integration test for uploading a file and seeing the prompt 2019-02-11 15:22:40 -05:00
Paul Kaplan 4ef98ec0fe Add unit test to make sure isDiscrete becomes correct step size 2019-02-11 11:48:18 -05:00
Nikhil Jha fb9c3eed74 Merge branch 'develop' into nj/ui-changes 2019-02-08 20:21:32 -08:00