Skip to content

Commit

Permalink
[Documentation:Developer] Fix WSL issue installing Cypress (#558)
Browse files Browse the repository at this point in the history
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.

<img width="859" alt="image"
src="https://github.com/Submitty/submitty.github.io/assets/117528498/bd1ac264-f5cd-4235-9684-04ffc5300db2">
  • Loading branch information
RitaLei123 authored Oct 20, 2023
1 parent ef23dbd commit 9b6623e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _docs/developer/testing/cypress.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 9b6623e

Please sign in to comment.