mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2026-01-01 10:37:22 +01:00
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:
4
.github/scripts/upgrade-test/README.md
vendored
4
.github/scripts/upgrade-test/README.md
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/upgrade-test.yaml
vendored
2
.github/workflows/upgrade-test.yaml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user