Commit graph

323 commits

Author SHA1 Message Date
Ben Wheeler
b6fcffd6f3 correct misspelled join flow intl id 2019-10-31 23:21:21 -04:00
Benjamin Wheeler
20d9ab64ac
Revert "fixed country options to use full country name string as option value" 2019-10-31 10:56:46 -04:00
Ben Wheeler
53f6b13399 revised tests to distinguish between erroneous remote requests 2019-10-30 17:45:15 -04:00
Ben Wheeler
420e7dfa3e WIP trying to fix tests 2019-10-30 15:34:52 -04:00
Ben Wheeler
a9810b6a1f revised username tests to separate them, make them clearer 2019-10-30 15:16:15 -04:00
Ben Wheeler
7dff707782 split password tests up 2019-10-30 15:09:25 -04:00
Ben Wheeler
6bf27b7e8a count unicode characters as single characters 2019-10-30 15:06:22 -04:00
Benjamin Wheeler
a85c1c3f78
Merge pull request #3468 from benjiwheeler/country-data-name-fix
fixed country options to use full country name string as option value
2019-10-21 16:12:25 -04:00
Ben Wheeler
f8986c437c added test for country option value being string 2019-10-21 13:47:57 -04:00
Benjamin Wheeler
d9bd2baf15
Merge pull request #3424 from benjiwheeler/join-flow-splash-join-button
splash page join button works with new join flow
2019-10-21 12:18:01 -04:00
Ben Wheeler
0ac6aee937 mock window.location.assign 2019-10-18 11:54:34 -04:00
Ben Wheeler
6d3a379d57 revise registration error tests 2019-10-18 11:40:31 -04:00
Ben Wheeler
80ab13d32f added tests for whether registration modal shows up 2019-10-17 23:38:55 -04:00
Ben Wheeler
c1b3efe572 corrected mocked function name 2019-10-17 23:38:55 -04:00
Ben Wheeler
8c30051bdc mocked event in simulated click 2019-10-17 23:38:54 -04:00
Ben Wheeler
a6cca54647 revise navigation.jsx test 2019-10-17 23:38:54 -04:00
Ben Wheeler
4474b4bc8c add navigation reducer test 2019-10-17 23:38:54 -04:00
Ben Wheeler
16a1fccc27 several tests of join-flow changes 2019-10-17 23:32:26 -04:00
Benjamin Wheeler
3e6e87c3a4
Merge pull request #3417 from benjiwheeler/join-flow-cache-remote
Join flow cache remote
2019-10-17 08:23:47 -04:00
Ben Wheeler
226134bc81 renamed ErrorBoundary prop name to componentName 2019-10-11 17:17:50 -04:00
Ben Wheeler
46660a2ff9 revised errorboundary tests 2019-10-10 13:31:25 -04:00
Ben Wheeler
487ca236be Add errorboundary tests 2019-10-10 06:59:09 -04:00
Benjamin Wheeler
b7cb82f1f5
Merge pull request #3374 from benjiwheeler/fastly-latest-active-vcl
when looking for latest fastly VCL to clone, use only active VCLs
2019-10-07 19:33:41 -04:00
Ben Wheeler
319c217e62 updated username test to reflect showPassword default 2019-10-01 18:26:56 -04:00
Ben Wheeler
495879d4a9 added tests for caching of username, email remote responses 2019-09-30 22:53:17 -04:00
Benjamin Wheeler
fdeb87fce9
Merge pull request #3383 from benjiwheeler/join-flow-navigate-to-join-page
scratch3 join flow redirects to /join, outside editor
2019-09-30 16:44:24 -04:00
Ben Wheeler
bc77322526 clear store between tests 2019-09-30 11:29:47 -04:00
Ben Wheeler
88abed34e9 revised fastly tests, added more 2019-09-26 10:59:55 -04:00
Ben Wheeler
6ff1a1c4f1 add navigation test 2019-09-26 09:29:02 -04:00
picklesrus
0d60b64c39 Add a prop to Modal that allows you to hide the close button. Set it to show by default and have the standalone join flow page set it to hidden. 2019-09-24 13:43:34 -04:00
Ben Wheeler
de5e712305 when looking for latest fastly VCL to clone, use only active VCLs 2019-09-19 14:27:42 -04:00
picklesrus
cdd90da423 Rename error function. 2019-09-19 13:40:09 -04:00
picklesrus
6a45907ded Handle errors of captcha loading by setting error state on JoinFlow. 2019-09-18 10:26:37 -04:00
Ben Wheeler
de4077773a updated email-step test 2019-09-16 20:12:42 -04:00
Ben Wheeler
2c2de08ed3 added tests for RegistrationErrorStep vs Progression 2019-09-10 16:37:10 -04:00
Ben Wheeler
74dbec2d66 registration error test 2019-09-10 16:34:23 -04:00
Ben Wheeler
aec4d90201 join flow test 2019-09-10 16:34:23 -04:00
Ben Wheeler
ee8cdac748 add tests for local email validation 2019-09-05 11:53:47 -04:00
picklesrus
56063ffc7e
Merge pull request #3322 from picklesrus/test-email-step
Add a unittest for the EmailStep.
2019-09-04 10:21:51 -04:00
picklesrus
3d58fc4d12 Standardize on using require instead of import.
Also fix a silly mistaake aand change the way I'm matching the contents 
of formData to be more specific.
2019-09-03 17:32:31 -04:00
Bryce Taylor
e8a8d6ab94
Merge pull request #3247 from BryceLTaylor/move-integration-tests-to-jest-2
Move sign in and out integration tests to jest
2019-08-30 15:31:06 -04:00
picklesrus
c9d7293119 use global.recaptcha instead of global.window.grecaptcha. 2019-08-30 13:42:49 -04:00
picklesrus
bd33b166f7 Add a unittest for the EmailStep. 2019-08-29 18:34:07 -04:00
Ben Wheeler
c4712128d5 added test with error, toolTip false 2019-08-27 11:44:18 -04:00
Ben Wheeler
8a19b7067f added tests for navigation reducer 2019-08-26 16:06:57 -04:00
Ben Wheeler
31b1d300f6 added tests of revised validation message 2019-08-20 20:25:44 +02:00
Benjamin Wheeler
3f150be19b
Merge pull request #3266 from benjiwheeler/join-flow-info-responsive
use media queries to make info message responsive
2019-08-19 18:01:30 +02:00
picklesrus
83bbe40468
Merge pull request #3260 from picklesrus/test-formik-component
Add simple tests for a couple of Formik components.
2019-08-19 11:53:42 -04:00
Ben Wheeler
1803641ae8 fixed join flow test 2019-08-19 16:17:32 +02:00
Ben Wheeler
d8bafccc31 mock MediaQuery 2019-08-18 04:47:06 +02:00
Ben Wheeler
f267af28b3 use media queries to make info message responsive 2019-08-18 04:44:28 +02:00
picklesrus
8de11218cc Add simple unittests for a couple of Formik components. 2019-08-15 13:53:16 -04:00
picklesrus
6a660aabf8
Merge pull request #3216 from picklesrus/test-join-flow
Add unittest for JoinFlowStep.
2019-08-14 09:30:08 -04:00
picklesrus
742d33bcfe Remove some whitespace. 2019-08-14 09:04:39 -04:00
Benjamin Wheeler
46de5a23e1
Merge pull request #3236 from benjiwheeler/join-flow-highlighting
handle username validation errors states better
2019-08-13 17:52:00 -04:00
Benjamin Wheeler
0321929412
Merge pull request #3185 from benjiwheeler/join-flow-more-strings
Revised and added several join flow strings
2019-08-13 17:50:59 -04:00
Ben Wheeler
5ee98e9ecd added info button test 2019-08-13 15:29:44 -04:00
BryceLTaylor
303863fd42 Remove first attempt at a my-stuff test in Jest 2019-08-13 15:15:44 -04:00
BryceLTaylor
a86a975876 Remove stub integration for Jest 2019-08-13 15:15:44 -04:00
BryceLTaylor
7af2ee79c3 Move Sign In and Sign Out tests to Jest 2019-08-13 15:15:44 -04:00
BryceLTaylor
8213466c2c set up jest integration tests to run with saucelabs 2019-08-13 15:15:44 -04:00
BryceLTaylor
b2eabeddfc Rename new integration tests to differentiate from old ones 2019-08-13 15:15:44 -04:00
BryceLTaylor
8c385e3e4d Update chrome version for remote tests and chromedriver 2019-08-13 15:15:44 -04:00
BryceLTaylor
88f07d6562 Add first test to my-stuff.test.js 2019-08-13 15:15:44 -04:00
Ben Wheeler
7ead9d0e96 use updated strings in join flow 2019-08-13 15:02:25 -04:00
Ben Wheeler
ca6711e860 switch validation error message to just ‘Required’ 2019-08-13 15:02:25 -04:00
Ben Wheeler
d5a86a99e5 added test for password equaling username 2019-08-13 14:22:46 -04:00
picklesrus
edfa86e0c1 Rename tests. Move submit button test out into separate test. 2019-08-13 09:21:57 -04:00
Ray Schamp
6275b516fc
Merge pull request #3199 from benjiwheeler/join-flow-country-data
Consolidate country lists, fix country field in teacher account registration
2019-08-07 15:00:50 -04:00
Ben Wheeler
51aa38fb34 consolidated country-data and contry-list 2019-08-06 00:00:37 -04:00
picklesrus
a100438db6 Add unittest for JoinFlowStep. 2019-08-05 15:47:47 -04:00
picklesrus
98a25068d6 Enable react linting and move test file to .jsx instead of .js. 2019-08-01 16:16:42 -04:00
picklesrus
0e09e29c80 Add Enzyme to www and add a test for the NextStepButton. This takes our enzyme helpers from gui and copies them here. It also requires a babel plugin to play nicely with jest. 2019-07-31 17:35:57 -04:00
Ben Wheeler
50e706efa8 country data, functions and tests 2019-07-31 17:21:32 -04:00
Ben Wheeler
748e07d172 deleted template example of unit test 2019-07-22 15:14:28 -04:00
Ben Wheeler
a6dc573f30 rewrote validate legacy unit test from using tap, to using jest 2019-07-22 14:54:25 -04:00
BryceLTaylor
755b26a578 Move testing README into the main README 2019-07-18 16:17:39 -04:00
BryceLTaylor
126f3a34b2 Updeate integration test README 2019-07-17 15:59:34 -04:00
BryceLTaylor
b63d64d03e Run Jest tests alongside Tap tests 2019-07-17 15:33:01 -04:00
BryceLTaylor
c56f488b33 Add Jest, Enzyme, and sample tests 2019-07-17 15:27:13 -04:00
BryceLTaylor
4a963dbfaa remove tap tests from non-legacy folders 2019-07-17 15:12:55 -04:00
BryceLTaylor
dd6b7ba4e2 Move tap tests into legacy folders 2019-07-17 14:56:48 -04:00
Ray Schamp
3e6982ff9d Move remaining Makefile entries to package.json
Remove Docker since it wasn’t really being used.
2019-07-15 09:24:47 -04:00
Ben Wheeler
67ad5fc383 added tests for password validations 2019-07-02 17:49:29 -04:00
Ben Wheeler
f6d1ba3194 WIP moving join flow validation functions to library 2019-07-02 17:27:44 -04:00
BryceLTaylor
6fcfee3c30 Skip tests that occasionally failed on travis 2019-06-26 11:16:56 -04:00
Benjamin Wheeler
35bcb8b33e
Merge pull request #3079 from benjiwheeler/add-join-test
added test to check that join window shows scratchr2 join flow
2019-06-25 18:23:59 -04:00
Ben Wheeler
a6db76b822 added test to check that join window shows scratchr2 join flow 2019-06-25 17:34:25 -04:00
Ray Schamp
94c7bb827a
Merge pull request #3025 from BryceLTaylor/Skip-Flakey-Tests
Skip flakey tests
2019-06-19 21:48:04 -04:00
BryceLTaylor
9643396ee4 Add tap.plan back into test-my-stuff integration test. 2019-06-06 17:34:20 -04:00
Benjamin Wheeler
f6845a2bc7
Merge pull request #3024 from benjiwheeler/remove-footer-tests
in (unused) Cypress test file, removed all footer link tests for external sites
2019-06-05 10:29:05 -04:00
BryceLTaylor
d251ee6e8b fix linting error 2019-06-03 17:12:59 -04:00
BryceLTaylor
55901b479d Make test_search integration tests default to scratch.ly instead of localhost
Everything else points at scratch.ly so if you provide no root url these tests inexplicably failed
2019-06-03 16:27:34 -04:00
BryceLTaylor
92790c2f9d Skip failing test in test-my-stuff integration test 2019-06-03 16:27:34 -04:00
BryceLTaylor
49de9b99ed Add waitUntilGone function to integration tests
Make sure the loading screen is not present when loading the project page
2019-06-03 16:27:34 -04:00
BryceLTaylor
352237f59a Update findByXpath selenium helper function 2019-06-03 16:27:34 -04:00
BryceLTaylor
cf96ad7aa8 Skip integration tests that go to external sites 2019-06-03 16:27:34 -04:00
Ben Wheeler
54d4c020f3 removed all footer link tests for external sites 2019-05-31 11:30:39 -04:00
Ben Wheeler
9ae9177ae5 added tests 2019-05-29 15:34:05 -04:00
Benjamin Wheeler
d20efcb74b
Merge pull request #2966 from benjiwheeler/search-escape-fix
make search urls use consistent encoding
2019-05-22 12:35:47 -04:00
Ben Wheeler
67c30868be moved test_search into smoke-testing directory so it will run 2019-05-21 22:43:41 -04:00
BryceLTaylor
8d4f387093 Make Add to studio test in test-my-stuff integration test look in shared projects 2019-05-16 11:45:29 -04:00
Ben Wheeler
db89e0744b added tests for search string processing 2019-05-13 15:02:56 -04:00
chrisgarrity
35ad77f667 Update all references to scratchr2_translations 2019-03-27 11:36:22 +01:00
BryceLTaylor
3f120ad830 futureproof test for conference link 2019-03-07 11:41:50 -05:00
BryceLTaylor
3132dc696e Update the integration test for the Scratch Conference link in the footer 2019-03-05 15:29:07 -05:00
BryceLTaylor
194842e414 Remove Scratch Wiki test 2019-01-16 14:56:01 -05:00
Ray Schamp
89ef3d1230
Merge pull request #2666 from rschamp/l10n-spam
Don't create a separate test for each l10n json
2019-01-11 12:17:29 -05:00
Ray
0db93fcc81 Don't create a separate test for each l10n json
Reduces the spam in Travis for visibility
2019-01-11 12:15:58 -05:00
Paul Kaplan
16391f25ee Strip out duplicates from replies and comments.
Fixes https://github.com/LLK/scratch-www/issues/2575
2019-01-10 13:49:07 -05:00
Paul Kaplan
e2c743445f Add unit test for setReplies action in preview reducer 2019-01-10 10:59:35 -05:00
chrisgarrity
7ec4d3783d Credits link has changed 2018-12-21 10:00:46 -05:00
Eric Rosenbaum
35d76ef59b Update tests 2018-12-13 21:12:16 -05:00
BryceLTaylor
b1b6aa66a0 Look for correct URL in See Inside test 2018-11-27 11:37:22 -05:00
BryceLTaylor
78dfaf07a8 explicitly require chromedriver so tests run 2018-11-27 11:36:16 -05:00
Paul Kaplan
d497797221 Add a unit test covering the trickier parts of the preview reducer 2018-11-15 10:55:48 -05:00
chrisgarrity
13b3e57381 open getting started tutorial for logged out users
- `create` on the navbar opens the getting started tutorial if the user is not logged in
- replaced any other use of `tip_bar=getStarted` with `tutorial=getStarted` (with the exception of Tips page)
- did not replace other uses of `tip_bar=home` as those should probably go to the new tips/ideas page.
2018-11-12 12:58:59 -05:00
MasterOfTheTiger
12aeba90ed Use https for ScratchJR links 2018-11-09 09:17:04 -08:00
BryceLTaylor
fc7979944b Update Chrome version in Saucelabs tests 2018-11-07 11:40:10 -05:00
BryceLTaylor
9bb8b7db28 Update chromedriver so tests pass more reliably 2018-11-06 15:35:21 -05:00
Benjamin Wheeler
337a9e2f30
fixed smoke tests to use non-exclusive class locators (#2102) 2018-09-25 09:29:06 -04:00
BryceLTaylor
417ce0996e Use Travis’s built in CI environment variable for tests 2018-07-11 14:50:04 -04:00
BryceLTaylor
fb8e0292ce Use Travis build Number rather than ID 2018-07-11 13:21:57 -04:00
BryceLTaylor
b1fa09eef9 Include Travis build id in Sauce Labs test name 2018-07-11 12:07:28 -04:00
BryceLTaylor
90d10dd417 Name Sauce Labs tests to indicate when run by Travis 2018-07-11 11:17:49 -04:00
BryceLTaylor
2bb898788f Update Intergration README to have Saucelabs info 2018-07-06 10:33:40 -04:00
BryceLTaylor
6cb52fca5c Fully remove Selenium_Promise_Manager=0 from tests 2018-07-05 14:22:58 -04:00
BryceLTaylor
f678c97727 Make Selenium Helper file more resemble GUI and Update Tests to use it 2018-07-05 14:22:58 -04:00
BryceLTaylor
3ef4278385 Remove use of var from selenium-helpers.js 2018-07-05 14:16:36 -04:00
BryceLTaylor
8231453bab Fully remove Selenium_Promise_Manager=0 from tests
# Conflicts:
#	test/integration/smoke-testing/test_footer_links.js
#	test/integration/smoke-testing/test_navbar_links.js
#	test/integration/smoke-testing/test_project_rows.js
2018-07-05 13:23:47 -04:00
BryceLTaylor
de9eb54f60 Setup Selenium Helpers create driver using SauceLabs 2018-06-25 15:17:15 -04:00
BryceLTaylor
f15a8bd714 Make selenium-helpers.js build driver in headless mode 2018-05-31 11:52:57 -04:00
BryceLTaylor
55f72e7487 Update travis.yml typo on running smoke tests 2018-05-30 16:29:37 -04:00
BryceLTaylor
86e9549cee Make all Selenium tests of login-failures work and use css to select elements. 2018-05-17 11:52:05 -04:00
BryceLTaylor
e7f57122c2 Make Selenium Helper function to click element by CSS 2018-05-17 11:33:21 -04:00
BryceLTaylor
4e017d3ca7 Remove Selenium smoke tests that sign in with no username since they break constantly. 2018-05-15 09:26:52 -04:00
BryceLTaylor
93e483e6e9 Split integration test test_signing_in_and_my_stuff into test-login-failures and test-my-stuff 2018-05-08 16:29:35 -04:00
BryceLTaylor
cb484da6b0 Update test_navbar_links integration test to use selenium_helpers 2018-05-08 16:28:02 -04:00
BryceLTaylor
cb52f679be Move Selenium-Helpers file and point integration tests to it 2018-05-08 16:26:48 -04:00
BryceLTaylor
9ece2e6ea6 Update selenium-webdriver and chromedriver versions to match gui. 2018-05-08 16:19:56 -04:00
BryceLTaylor
d876c809ac Fix linting issues in Cypress test-footer-links test 2018-03-22 15:14:05 -04:00
BryceLTaylor
53e8d66a11 Linted Cypress test files with —fix 2018-03-22 15:06:37 -04:00
BryceLTaylor
3f169123d9 Delete cypress example files 2018-03-22 15:05:47 -04:00
BryceLTaylor
88de06f61b Setup Cypress linting 2018-03-22 15:01:51 -04:00
BryceLTaylor
7d8bd57714 Clarify README for the Cypress tests more. 2018-03-21 10:44:09 -04:00
BryceLTaylor
240780b859 Clarify README in the Cypress Tests 2018-03-21 10:42:41 -04:00
BryceLTaylor
057e000b12 Clarify and expand README for Cypress tests 2018-03-21 10:40:45 -04:00
BryceLTaylor
95303e7079 Add initial cypress tests 2018-03-21 10:00:23 -04:00
Ray Schamp
bd224be0e4
Update footer to even newer expected URL 2018-02-28 15:58:48 -05:00
jwzimmer
6db990ff06 Update footer link for wiki 2018-02-18 09:59:35 -05:00