Skip to content

Commit 1d6733a

Browse files
Add basic page rendering tests
1 parent 70840a4 commit 1d6733a

16 files changed

+117
-1411
lines changed

.github/workflows/astro.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ jobs:
9797
BASE_PATH: ${{ vars.BASE_PATH }}
9898

9999
- name: Run tests
100-
run: |
101-
# TODO: Implement actual tests
102-
echo "Tests placeholder - returning success"
103-
exit 0
100+
run: npm run test:dist
104101
working-directory: ${{ env.BUILD_PATH }}
105102

106103
- name: Commit content updates

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
"og-cache": "tsx scripts/manage-og-cache.ts",
1818
"generate-redirects": "tsx scripts/generate-redirects.tsx",
1919
"extract-themes": "tsx scripts/extract-theme-colors.ts",
20-
"test": "playwright test",
20+
"test": "npm run test:dev",
21+
"test:dev": "playwright test",
2122
"test:screenshots": "rm -rf test/screenshots/output && TEST_TYPE=screenshots playwright test",
22-
"test:build": "npm run build && TEST_BUILD=true playwright test",
23-
"test:build:fast": "TEST_BUILD=true playwright test"
23+
"test:rebuild": "npm run build && TEST_BUILD=true playwright test",
24+
"test:dist": "TEST_BUILD=true playwright test"
2425
},
2526
"devDependencies": {
2627
"@astrojs/check": "^0.9.4",

playwright.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const port = process.env.TEST_PORT
1919
// Set it in env to ensure consistency across config reloads
2020
process.env.PLAYWRIGHT_TEST_PORT = String(port);
2121

22-
console.log(
23-
`Using port ${port} for Playwright ${testType} tests (${isTestingBuild ? "preview" : "dev"} mode)`,
24-
);
22+
// console.log(
23+
// `Using port ${port} for Playwright ${testType} tests (${isTestingBuild ? "preview" : "dev"} mode)`,
24+
// );
2525

2626
// Get base path from environment variable
2727
const basePath = process.env.BASE_PATH || "";

test/e2e/event-countdown.spec.ts

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)