Commit Graph

49 Commits

Author SHA1 Message Date
Shaun Hamilton
59f17f237b refactor: files{} -> challengeFiles[], and key -> fileKey (#43023)
* fix(client): fix client

* fix propType and add comment

* revert user.json prettification

* slight type refactor and payload correction

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* update ChallengeFile type imports

* add cypress test for code-storage

* update test and storage epic

* fix Shaun's tired brain's logic

* refactor with suggestions

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* update codeReset

* increate cypress timeout because firefox is slow

* remove unused import to make linter happy

* use focus on editor

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* use more specific seletor for cypress editor test

* account for silly null challengeFiles

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-12 20:48:28 +02:00
Nicholas Carrigan (he/him)
7e8a05ac1c feat(tools): test navigation links (#43080)
* feat(tools): test navigation links

* fix(tools): use single it
2021-07-31 12:51:50 +05:30
Oliver Eyton-Williams
f4dc81bce3 fix: improve cert claiming test (#42989)
cy.intercept to ensure that the server has saved the submission

should('not.exist') since the modal leaves the dom

Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>

Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
2021-07-23 23:27:12 +02:00
Sem Bauke
cd1c16b3a9 feat(Cypress): add test for breadcrumbs (#42878)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-16 19:14:52 +05:30
Shaun Hamilton
6ca6d9950c feat(client): improve SuperBlock cert claiming UX (#41147)
* feat(client): improve SuperBlock cert claiming UX

* broken: add certCard foundation

* broken: add TODO comments for scatter-brain

* restructure stepsToClaimSelector

* add api-server verifyCanClaimCert logic

* temp: correct verifyCanClaim URL

* move GET logic to CertificationCard, remove console.logs

* add error handling, and navigation logic

* correct verification logical flow

* fix completion-epic updates, fix cert verify

* update widget to button, disable button unless verified

* working: refactor CertChallenge with hook state

* add StepsType

* update Honesty snapshot

* add DonationModal to SuperBlockIntro

* disable Claim Cert button unless also isHonest

* prevent warning when viewing cert

* test: use navigate in Modal to return to hash

* test: replace gatsby.navigate with reach/router.navigate

* add propTypes

* fix: rename propTypes -> prop-types

* use react-scrollable-anchor to squash modal bug

* update location parser type

* open-source Oliver's suggestion

* fix superblock title

* add claim-cert-from-learn tests

* use larger tests

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix some cypress stuff

* fix ShowCertification cypress test

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-15 23:51:27 +09:00
Ahmad Abdolsaheb
b3f2c64de8 fix(client): remove algolia and hot keys modules from landing pages (#42394)
* fix(client): remove algolia and hot keys from landing pages

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-24 12:50:36 +03:00
Huyen Nguyen
2c16234853 chore: add jest global variables (#42573) 2021-06-20 09:14:42 +02:00
Mrugesh Mohapatra
3130265991 revert: (test, e2e) test suit for cypress (#42488)
This reverts commit 22b45761a7.
2021-06-14 23:44:43 +05:30
Sem Bauke
22b45761a7 feat(test, e2e) test suit for cypress (#42138)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-14 22:07:52 +05:30
Kristofer Koishigawa
e82f5f4425 feat: update titles for certification pages (#42252)
* feat: update titles for certification pages

* fix: update titles in Cypress tests

* fix: change "certificate" to "certification" in intro-page.js test file

* fix: prevent adding "Certification" to title for interview prep, make variable name more clear

* feat: add test for coding interview prep page title
2021-06-04 12:04:02 +02:00
saeed
66c5523909 feat: render footer correctly (#42096)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2021-05-24 00:30:07 +02:00
Kristofer Koishigawa
94d4b2f553 fix: navbar avatar height, background colors (#42076)
* fix: navbar avatar height

* fix: prevent avatar background change when hovered or focused
2021-05-11 00:15:16 +05:30
Nicholas Carrigan (he/him)
626d286bca feat(tools): help button tests (#42051)
Add tests that validate the functionality of the `Get Help` dropdown.
2021-05-07 22:12:16 +01:00
GM Fuster
3b056aa7b4 chore(replit): use correct brand name across codebase (#41941)
* replace repl.it with replit.com in the English version

Replace repl.it to replit.com in the English version.  Chinese and Spanish versions have the same issue.

* Updated the repl.it to replit.com or Replit

I changed the text from replit.com to Replit and added the changes to the files outside the curriculum folder.

* Forgot removing one .com.

There was on Replit.com that I missed when I reviewed the files.

* Resolve conflicts

I got an unable to auto merge so resolving conflicts and trying again.

* try committing conflicts again

* Trying the conflicts again

* chore: fix typo in personal library

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>

Co-authored-by: gemmaf98 <44875585+gemmaf98@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
2021-04-29 11:13:38 +01:00
Oliver Eyton-Williams
ebe8f99345 test(e2e): re-enable output tests (#41897)
This time visiting the page in the 'before' stage, which seems to help
with the ChunkLoadError
2021-04-28 09:04:07 -05:00
Sem Bauke
20cbfce484 chore(client) remove contextual navigation (#41919) 2021-04-28 08:10:43 -05:00
Oliver Eyton-Williams
71faba15da fix(e2e): wait for next challenge render (#41888)
* test: wait for next challenge render

* test: confirm URL has changed

* test: stop trying to go to next challenge

* test: increase no. of retries due to flakiness
2021-04-22 21:53:55 +05:30
Mrugesh Mohapatra
6c91f81b0e chore(deps): upgrade eslint, prettier & related packages 2021-03-11 12:19:42 +05:30
Ahmad Abdolsaheb
05a97d19fb fix: adjust donation confirmation text (#41140) 2021-02-16 23:52:52 +03:00
Tom
32eade41b1 feat(client): improve navigation experience with scrolling (#41042) 2021-02-11 23:52:04 +05:30
Kristofer Koishigawa
1e9dc8cea5 fix: remove algolia indices and urls from translations (#41043) 2021-02-11 00:11:51 +05:30
Oliver Eyton-Williams
2cbb748bc5 fix(test): confirm that Python projects can be submitted (#41038)
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
2021-02-10 20:15:42 +05:30
Mrugesh Mohapatra
827bcfaaa2 chore(e2e): temporary disable flaky test (#41010) 2021-02-09 14:15:18 +05:30
Ahmad Abdolsaheb
3c7979692b fix(client): block donation modal (#40899)
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
2021-02-08 12:58:36 +05:30
Nicholas Carrigan (he/him)
58c6c54c67 feat(client): redesigned navigation (#40709)
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2021-01-31 12:15:40 +05:30
Kristofer Koishigawa
2615490bac fix(learn): update copy for cert landing pages
* fix: update copy for certification landing pages (#40744)

* fix: broken ci tests (#40746)

Co-authored-by: Quincy Larson <QuincyLarson@users.noreply.github.com>
2021-01-31 12:15:39 +05:30
Tom
625469c82f feat: improve ui/ux learn map (#40579)
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
2021-01-31 12:15:39 +05:30
Kabindra Shrestha
ac3d762bb5 fix(learn): split and simplified learn map (#39154) 2021-01-31 12:15:35 +05:30
Tom
3978c6be28 feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:32 +05:30
Ahmad Abdolsaheb
f2af1cd77e fix: update SEO on landing page (#40670) 2021-01-15 20:09:59 +05:30
Ahmad Abdolsaheb
7d41dd0e80 feat: update donation page copy (#40639) 2021-01-08 18:24:39 +05:30
Ahmad Abdolsaheb
405c9f96e1 feat: add donation options to donors alert and donation page footer (#40498)
* feat: add donation options to donors alert and donation page footer

* Update client/src/components/Donation/DonationOptionsText.js

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>

* Update client/src/components/Donation/DonationOptionsText.js

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>

* fix: clean up

* fix: remove comments

* feat: make the component declerative

* feat: move donation text components to one component

* feat: add cypress tests for donate page

* Update cypress/integration/learn/donate/donate-page-default.js

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-12-28 13:14:16 -06:00
Twaha Rahman
45fe3d8814 fix(cypress): Re-introduce Firefox in Cypress CI (#40440)
* Revert "chore: drop firefox for intermittent fails"

This reverts commit 704beb2260.

* Increase timeout for Cypress learn log output test
2020-12-14 18:50:48 +01:00
Ahmad Abdolsaheb
2959196b35 feat: update title meta (#40362) 2020-12-07 11:15:11 +01:00
Twaha Rahman
bf0c49f9b4 chore(cypress): migrate to Cypress v6 (#40396)
* Update Cypress version from 5.3.0 to 6.0.0

* Replace `not.be.visible` with `not.exist`

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-12-07 11:02:52 +01:00
Ahmad Abdolsaheb
b2a11dcb72 feat: add back the forum nav item (#40060) 2020-10-22 21:57:41 +05:30
Ahmad Abdolsaheb
1a66eac990 feat: render nav conditionally 2020-09-24 17:48:29 +05:30
Oliver Eyton-Williams
4f0959df1d fix: use position: fixed to avoid forcing Cypress (#39605) 2020-09-23 20:45:21 +05:30
Twaha Rahman
206c5994b7 feat(Cypress): Add e2e tests for /learn (#39580)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-09-17 16:22:37 +05:30
Oliver Eyton-Williams
79105af50d test(e2e): submission of unfinished challenge urls 2020-09-16 11:54:15 +05:30
Twaha Rahman
3e3652a788 Test(Cypress): Add tests for the landing page and the navbar (#39459)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-04 18:27:21 +02:00
Oliver Eyton-Williams
4a45b5ac1c fix: redirect /challenges/* to /learn/* 2020-09-01 11:35:44 +05:30
Oliver Eyton-Williams
6579b502fd fix(e2e): wait for editor before running tests (#39465) 2020-08-25 22:58:27 +05:30
Twaha Rahman
16a643d66f fix(learn): add e2e tests for navigation buttons in /learn (#39455) 2020-08-24 16:17:33 +05:30
Mrugesh Mohapatra
42686db303 feat: update learn intro (#39393)
* feat: update learn into

* fix: make text more readable

* fix: adjust global font smoothing

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-08-13 12:33:03 +02:00
Oliver Eyton-Williams
7269894a86 refactor: test output -> arrays (#39178) 2020-07-18 00:33:23 +05:30
Mrugesh Mohapatra
9879d6e72b fix(learn): update project views for python 2020-05-27 13:19:15 +05:30
Luis H. Ball Jr
2db668b6ad feat: show extensions warning in css learning module index (#38806) 2020-05-19 14:05:33 +05:30
Bouncey
7eb6351530 feat: add cypress for e2e tests 2020-04-23 01:42:24 +05:30