Welcome to the repo for my personal site. This is where I mess around with software QA, test automation, and web stuff.
- This site lives on GitHub Pages
- GitHub Actions run tests on it using Playwright
- There's some Cypress code still hanging around
- Quality gates, linting, and experimenting
Clone the repo, then:
npm install
npm install
might overwrite the .gitignore and pre-commit inside the .husky/_ dir. Undo that if it happens.
If you want to run the tests locally with the dev server:
- Run the server with:
node server.js
Or with the bash script (not necessary, just for fun):
chmod +x start-server.sh
(Only need to do this if permissions aren't set 1st time)
./start-server.sh
Pre-commit is set up with Husky + lint-staged. Here's what runs on staged files:
eslint
and HTML linting/Cypress plugins for thatprettier
for formatting (Set this up as an eslint plugin also)
If your commit fails, check the logs.
@@ This repo contains: @@
# GitHub Pages site source files
! GitHub Actions YAMLs
! playwright-mysite.yml pulls in th test-playwright repo and runs tests on PRs/pushes
- Old Cypress scripts (mostly retired)
- One still active: readyToTestSmoke.cy.js (runs on a schedule via GH Actions)
+ Playwright is the main character now
+ If you're curious, check out my test-playwright repo
If you are using VS Code, I recommend you open the repo with VS Code's workspace files. The file is located in the root of the repo and has the .code.workspace
extension. It contains configurations for the Prettier extension and recommended extensions.
If you want, you can add the paths to both this repo and the test-playwright repo in your workspace, which allows you to work on them simultaneously. However, I personally prefer working with one repo at a time to keep things organized, unless I'm wanting to test Playwright against my site locally.
Cypress Cloud (for Sauce Demo only)
Note: Only Sauce Demo specs go through Cypress Cloud. The rest use good ol' Mochawesome reports.