From 9b6623e0e8740515c3fb81c97d43355b4f599202 Mon Sep 17 00:00:00 2001 From: Rita Lei <117528498+RitaLei123@users.noreply.github.com> Date: Fri, 20 Oct 2023 13:17:59 -0400 Subject: [PATCH] [Documentation:Developer] Fix WSL issue installing Cypress (#558) Changes: Added "If you are on WSL and run into an error, make sure you installed `node.js` on your desktop (Program Files) and not inside your local Submitty repository." in cypress.md (https://submitty.org/developer/testing/cypress) WHY: I ran into a issue while installing cypress (I installed node.js in the wrong file) and this is to help others who might run into the same issue. image --- _docs/developer/testing/cypress.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_docs/developer/testing/cypress.md b/_docs/developer/testing/cypress.md index 900c7f7e..9947a64f 100644 --- a/_docs/developer/testing/cypress.md +++ b/_docs/developer/testing/cypress.md @@ -11,8 +11,7 @@ directly, but rather focuses on user navigation through the website. It used to use Selenium, but has been rewritten in using Cypress. ## Installation - -Make sure you have `node.js` version 10 or higher installed locally. You can check using the command: `node -v` +Make sure you have [`node.js`](https://www.nodejs.org/) version 10 or higher installed locally. You can check using the command: `node -v` ```bash # from the site directory @@ -21,6 +20,8 @@ npm install If you are on Linux, view [this page](https://docs.cypress.io/guides/getting-started/installing-cypress.html#Linux) to see what dependencies you may need to install additionally for Cypress. +If you are on WSL and run into an error, make sure you installed `node.js` on your desktop (Program Files) and not inside your local Submitty repository. + ## Cypress Test Runner You can open the test runner by navigating into `site/` and using the command: