From 40c5f5ca6a5001e733b8116bfdf9cff197ed0b54 Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Wed, 1 Nov 2023 12:48:03 +0400 Subject: [PATCH] fix: broken commands mobile doc (#51972) --- .github/workflows/e2e-mobile.yml | 5 ++++- docs/how-to-setup-freecodecamp-mobile-app-locally.md | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-mobile.yml b/.github/workflows/e2e-mobile.yml index 93d8323a8a4..eeed80d6cda 100644 --- a/.github/workflows/e2e-mobile.yml +++ b/.github/workflows/e2e-mobile.yml @@ -69,11 +69,14 @@ jobs: run: | sed -i 's#cypress/e2e/default/#cypress/e2e/#g' cypress.config.js + - name: Install serve + run: npm install -g serve + - name: Cypress run uses: cypress-io/github-action@v6 with: record: ${{ env.CYPRESS_RECORD_KEY != 0 }} - start: npx serve + start: npx serve --no-request-logging wait-on: http://localhost:3000 wait-on-timeout: 1200 config: retries=1,screenshotOnRunFailure=false,video=false,baseUrl=http://localhost:3000/mobile/mobile-app/generated-tests/ diff --git a/docs/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/how-to-setup-freecodecamp-mobile-app-locally.md index 70c3a87166f..b3dd1f72294 100644 --- a/docs/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/how-to-setup-freecodecamp-mobile-app-locally.md @@ -417,7 +417,7 @@ Follow these steps: #### **Windows** ```console - copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json + copy .\shared\config\curriculum.json ..\mobile\mobile-app\curriculum.json ``` 7. Change directory to the mobile app: @@ -435,7 +435,7 @@ Follow these steps: 9. Update the test file to use the challenge data JSON file: ```console - sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + sed -i '' 's/..\/..\/shared\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart ``` 10. Generate the challenge files: