Skip to content

Commit

Permalink
Seems to work now idk
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-G32 committed Apr 6, 2024
1 parent 73781e6 commit bfbf8bc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/test404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Python
run: |
echo "$ ls"
ls
echo "$ apt update"
apt update
echo "$ apt install python3 -y"
apt install python3 -y
echo "$ python3 -V"
python3 -V
- name : Start Python's HTTP Server
run: |
echo "$ python3 -m http.server"
python3 -m http.server --bind 127.0.0.1 &
- name: Install Chrome Shared Libraries
run: |
sudo apt-get update && sudo apt-get install -y \
Expand Down Expand Up @@ -57,7 +73,7 @@ jobs:
run: npm install
- name: Install Chrome
run: npx puppeteer browsers install chrome

- name: Run browser tests
run: npm run test:no404



2 changes: 1 addition & 1 deletion tests/test-no404.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function monitorNetwork() {
count404+=1;
}
});
await page.goto('http://127.0.0.1:5500/index.html');
await page.goto('http://127.0.0.1:8000/index.html');
await browser.close();
return count404;
}
Expand Down

0 comments on commit bfbf8bc

Please sign in to comment.