Skip to content

Commit 1f6fe1c

Browse files
committed
point to html file
1 parent 0d0fe8a commit 1f6fe1c

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/cypress.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ jobs:
1818
# Start the server and serve the HTML file
1919
- name: Start http-server
2020
run: |
21-
nohup http-server -p 3000 . &
22-
sleep 5 # Give the server some time to start
23-
24-
# and run all Cypress tests
25-
- name: Cypress run
21+
nohup npx http-server ./calculator.html -p 3000 &
22+
23+
- name: Run Cypress tests
2624
uses: cypress-io/github-action@v6
2725
with:
2826
browser: chrome
29-
config: pageLoadTimeout=100000,baseUrl=http://localhost:3000
27+
start: npm start
28+
config: baseUrl=http://localhost:3000

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"license": "ISC",
1212
"devDependencies": {
1313
"cypress": "^14.2.0",
14-
"http-server": "^14.0.0"
14+
"http-server": "^14.1.1"
1515
}
1616
}

0 commit comments

Comments
 (0)