-
Notifications
You must be signed in to change notification settings - Fork 0
feature: e2e manual tests #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
14b3612
test: stabilize E2E framework and enhance UI interaction coverage
TheFehr ec75ee2
test: add E2E test for project lifecycle and improve coverage for con…
TheFehr 8801a03
test(e2e): fix and stabilize end-to-end tests for Foundry V12 and Tid…
TheFehr 7acce87
test(e2e): implement project completion and reward restoration test
TheFehr dd9bce2
test(e2e): implement instructor and tutelage system tests and fix cur…
TheFehr 8b0b042
refactor(types): enhance ActorProxy type safety and standardize proje…
TheFehr 6ce7ad7
refactor: resolve Foundry v12/v13 deprecations and enforce in E2E tests
TheFehr 5eb5ab8
test(e2e): implement training resolution choice and fix activity sync…
TheFehr 9c2034f
test(e2e): expand console monitoring in Playwright fixtures
TheFehr dd8996e
fix: resolve TypeScript errors and unit test failures in ActivityManager
TheFehr 6c93df5
test(e2e): implement advanced time bank management tests
TheFehr d50dce3
test(e2e): add GM controls test for project override and abort actions
TheFehr 1e94063
refactor(core): replace global Logger usage with local import and upd…
TheFehr ded274e
test(e2e): replace static waitForTimeout calls with dynamic waitForFu…
TheFehr 4746e00
test(e2e): update completion tests to use "feat" type and improve cre…
TheFehr 19c4a8b
refactor(e2e): enhance project restoration logic and tests
TheFehr 4fb700a
test(e2e): add admin password presence logging in global-setup
TheFehr de062cb
refactor(e2e): simplify setup page verification and enhance error han…
TheFehr 042a912
test(e2e): refine dialog selection and message verification logic
TheFehr d23e8c0
test(e2e): add multi-user interaction tests for GM and Player workflows
TheFehr 79e8315
refactor(e2e): remove player setup script and consolidate context/con…
TheFehr a0f0b46
ci(e2e): add automated E2E verification workflow
TheFehr 277cf9d
chore: verify e2e
TheFehr 3f7cbbc
chore(e2e): use content hash for verification and improve workflow co…
TheFehr c8f0bfd
chore(e2e): add compendium existence checks and improve error handlin…
TheFehr b3b3cd3
refactor(tests): enhance mergeObject options and add transient field …
TheFehr 3b94e43
test(e2e): pass baseURL to player context in multi-user interaction test
TheFehr 6c8d66f
chore: verify e2e [hash: c26aa85d]
TheFehr f22049f
chore: update hash calculation and fix stashed system restoration
TheFehr a18a745
chore: verify e2e [hash: 3187b675]
TheFehr 721257e
test(e2e): clean up stale learning projects in multi-user test
TheFehr 5810280
chore: verify e2e [hash: 0e6ec972]
TheFehr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 0e6ec972274b1909a8d4303fe3632de6139517993d55fe8edb9dc1be0c814a39 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Foundry VTT E2E Configuration | ||
| # Copy this file to .env and fill in your local values | ||
|
|
||
| # The base URL of your local Foundry instance | ||
| FOUNDRY_URL=http://localhost:30000 | ||
|
|
||
| # Optional: The admin password to log into the /setup screen | ||
| # Only required if the server is at the setup screen and locked | ||
| FOUNDRY_ADMIN_PASSWORD= | ||
|
|
||
| # The name (id) of the world to launch and test in | ||
| FOUNDRY_E2E_WORLD=e2e-test-world | ||
|
|
||
| # The username (case-sensitive) to log in as in the world | ||
| FOUNDRY_E2E_USER=Gamemaster | ||
|
|
||
| # The password for the world user | ||
| FOUNDRY_E2E_PASSWORD= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: E2E Verification Check | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| check-e2e: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Verify E2E Signature | ||
| run: | | ||
| if [ ! -f .e2e-verification ]; then | ||
| echo "::error::.e2e-verification file is missing. You must run 'npm run test:e2e:verify' locally and push the resulting commit." | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Function to calculate hash (MUST match scripts/e2e-verify.sh) | ||
| calculate_hash() { | ||
| git ls-files -z src/ e2e/ public/ package.json package-lock.json playwright.config.ts vite.config.ts tsconfig*.json .tool-versions | \ | ||
| sort -z | \ | ||
| xargs -0 sha256sum | \ | ||
| sha256sum | \ | ||
| cut -d ' ' -f 1 | ||
| } | ||
|
|
||
| EXPECTED_HASH=$(cat .e2e-verification | tr -d '[:space:]') | ||
| ACTUAL_HASH=$(calculate_hash) | ||
|
|
||
| echo "Expected hash: $EXPECTED_HASH" | ||
| echo "Actual hash: $ACTUAL_HASH" | ||
|
|
||
| if [ "$EXPECTED_HASH" != "$ACTUAL_HASH" ]; then | ||
| echo "::error::E2E verification hash mismatch. Source files or configuration have changed since the last E2E verification. Please run 'npm run test:e2e:verify' locally and push the updated .e2e-verification file." | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "✅ E2E verification is valid for the current content." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,7 @@ dist/ | |
|
|
||
| .env.foundryvtt.local | ||
| /.junie/ | ||
| /playwright-report/ | ||
| /test-results/ | ||
| /.env | ||
| e2e/.auth/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,4 @@ dist/ | |
| node_modules/ | ||
| external-types/ | ||
| external-dts/ | ||
| e2e/.auth/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.