fix: broken commands mobile doc (#51972)

This commit is contained in:
Niraj Nandish
2023-11-01 08:48:03 +00:00
committed by GitHub
parent 5b074f7141
commit 40c5f5ca6a
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -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/
@@ -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: