Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package-lock.json
public/
evidence/
tests/fixtures/
node_modules/
dist/
.astro/
5 changes: 4 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ https://docs.dask.org/en/latest/develop.html.

For website changes, use Node.js 24, install dependencies with `npm ci`,
install Chromium with `npx playwright install --with-deps chromium`, and run
`npm run check`.
`npm run check`. For a focused run, build once with `npm run build`, then use
`npm test -- tests/<name>.spec.mjs`. The runner serves the production build and
a Read the Docs mount on local, ephemeral ports; artifacts from failed tests
are written under `evidence/playwright/`.
Keep route data and shared Astro components DRY; use native browser behavior,
not Webflow/jQuery libraries. Commit the lockfile with dependency changes.
Run `npm run format` before submitting a PR. Include reproducible test evidence
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ and legacy HTML. Astro produces `dist/`; generated output, dependencies and test
evidence are ignored by Git.

The build uses Node.js 24 and npm with a committed lockfile. Automated checks
cover formatting, builds, asset integrity, browser interactions, responsive
layouts, animations and redirects.
cover formatting, static output, responsive layout, browser interactions,
animations, redirects and mounted previews. Playwright specs are organized by
behavior in `tests/`.

GitHub Actions CI checks pull requests. The Pages workflow builds and publishes
upstream main, with separate build and deployment jobs and main-only manual
Expand All @@ -27,6 +28,4 @@ closed-survey pages are included. Forms have no submission backend.
Dask content and implementation are attributed to Dask core developers.
[LICENSE.txt](LICENSE.txt) contains the BSD license; [licenses](licenses/)
contains font and renderer notices. Third-party artwork and trademarks retain
their owners' rights. Asset source URLs are recorded in `src/data/assets.json`;
source identities and original animation URLs/hashes are recorded in
`tests/fixtures/provenance.json`.
their owners' rights.
25 changes: 0 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,17 @@
"dev": "astro dev --host 127.0.0.1",
"build": "astro build",
"preview": "astro preview --host 127.0.0.1",
"test": "node scripts/test.mjs",
"test": "playwright test",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test:redirects": "node scripts/redirect-checks.mjs",
"test:static": "node scripts/static-checks.mjs",
"check": "npm run format:check && npm run build && npm run test:static && npm test && npm run test:redirects && npm run test:readthedocs && npm run test:lottie",
"test:readthedocs": "node scripts/readthedocs-checks.mjs",
"test:lottie": "node scripts/lottie-checks.mjs"
"check": "npm run format:check && npm run build && npm test"
},
"dependencies": {
"astro": "^7.4.12",
"lottie-web": "5.13.0"
},
"devDependencies": {
"@playwright/test": "^1.56.0",
"pixelmatch": "^7.1.0",
"pngjs": "^7.0.0",
"prettier": "^3.10.1",
"prettier-plugin-astro": "^1.1.2"
},
Expand Down
13 changes: 13 additions & 0 deletions playwright.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from '@playwright/test';

export default defineConfig({
testDir: './tests',
globalSetup: './tests/support/preview.mjs',
outputDir: './evidence/playwright',
workers: 2,
use: {
reducedMotion: 'reduce',
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
},
});
29 changes: 0 additions & 29 deletions scripts/brand-reading-check.mjs

This file was deleted.

170 changes: 0 additions & 170 deletions scripts/lottie-checks.mjs

This file was deleted.

Loading