Move upgrade verification tests to separate directory

- Move upgrade-verification.spec.ts from test/e2e/ to test/upgrade/
- This prevents the test from running during normal E2E CI runs
- The upgrade test is only meant for the upgrade-test workflow
- Update workflow and documentation to reflect new location

Co-authored-by: katosdev <7927609+katosdev@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-27 16:12:51 +00:00
parent 4abfc76865
commit 09e056a3fb
3 changed files with 12 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ TEST_DATA_FILE=/tmp/test-users.json \
E2E_BASE_URL=http://localhost:7745 \
pnpm exec playwright test \
--project=chromium \
test/e2e/upgrade-verification.spec.ts
test/upgrade/upgrade-verification.spec.ts
# Cleanup
docker stop homebox-test
@@ -248,7 +248,7 @@ Potential improvements:
- `.github/workflows/upgrade-test.yaml` - Main workflow definition
- `.github/scripts/upgrade-test/create-test-data.sh` - Data generation script
- `frontend/test/e2e/upgrade-verification.spec.ts` - Playwright verification tests
- `frontend/test/upgrade/upgrade-verification.spec.ts` - Playwright verification tests
- `.github/workflows/e2e-partial.yaml` - Standard E2E test workflow (for reference)
## Support

View File

@@ -141,7 +141,7 @@ jobs:
pnpm exec playwright test \
-c ./test/playwright.config.ts \
--project=chromium \
test/e2e/upgrade-verification.spec.ts
test/upgrade/upgrade-verification.spec.ts
env:
HOMEBOX_URL: http://localhost:7745

View File

@@ -1,3 +1,12 @@
/**
* HomeBox Upgrade Verification Tests
*
* NOTE: These tests are ONLY meant to run in the upgrade-test workflow.
* They require test data to be pre-created by the create-test-data.sh script.
* These tests are stored in test/upgrade/ (not test/e2e/) to prevent them
* from running during normal E2E test runs.
*/
import { expect, test } from "@playwright/test";
import * as fs from "fs";