Repository navigation
test(web-e2e): ship every Playwright test as a trace to Dash0 #703
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
7 commits
Select commit
Hold shift + click to select a range
c507c7a
test(web-e2e): ship every Playwright test as a trace to Dash0
mthines 67ed011
test(web-e2e): redact home paths in exported error text; track the OT…
mthines 8716b01
test(web-e2e): keep the inferred test inputs; redact paths against th…
mthines 9ba4c74
test(web-e2e): scrub typed values and known secrets from exported err…
mthines d3df503
docs(web-e2e): export follows resolveTelemetryConfig, OTLP endpoint i…
mthines e6ec95d
docs(web-e2e): an explicit OTLP endpoint enables export without a cre…
mthines 31d5e51
test(web-e2e): extract and test buildRedactions
mthines 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
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 |
|---|---|---|
|
|
@@ -428,6 +428,9 @@ jobs: | |
| # The staged build talks to the PRODUCTION backend, whatever its URL says. | ||
| E2E_TARGET: production | ||
| API_CHANGED: ${{ needs.changes.outputs.api }} | ||
| # The otel reporter (packages/web-e2e/src/support/otel-reporter.ts) ships | ||
| # each test as a trace; LOREKIT_TELEMETRY_TOKEN is set on the Playwright steps. | ||
| LOREKIT_CORRELATION_ID: e2e-web-staged-${{ github.run_id }}-${{ github.run_attempt }} | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/[email protected] | ||
|
|
@@ -449,6 +452,8 @@ jobs: | |
|
|
||
| - name: Playwright — public pages on the staged build | ||
| working-directory: packages/web-e2e | ||
| env: | ||
| LOREKIT_TELEMETRY_TOKEN: ${{ secrets.LOREKIT_TELEMETRY_TOKEN }} | ||
| run: npx playwright test --project=public | ||
|
|
||
| - name: Note — signed-in pages run after promotion this time | ||
|
|
@@ -467,6 +472,7 @@ jobs: | |
| env: | ||
| E2E_USER_EMAIL: ${{ secrets.LOREKIT_TESTING_USER_NAME }} | ||
| E2E_USER_PASSWORD: ${{ secrets.LOREKIT_TESTING_USER_PW }} | ||
| LOREKIT_TELEMETRY_TOKEN: ${{ secrets.LOREKIT_TELEMETRY_TOKEN }} | ||
| run: npx playwright test --project=setup | ||
|
|
||
| - name: Playwright — signed-in pages on the staged build | ||
|
|
@@ -475,6 +481,7 @@ jobs: | |
| env: | ||
| E2E_USER_EMAIL: ${{ secrets.LOREKIT_TESTING_USER_NAME }} | ||
| E2E_USER_PASSWORD: ${{ secrets.LOREKIT_TESTING_USER_PW }} | ||
| LOREKIT_TELEMETRY_TOKEN: ${{ secrets.LOREKIT_TELEMETRY_TOKEN }} | ||
| run: npx playwright test --project=signed-in --no-deps | ||
|
|
||
| - name: Warn — the test account could not sign in | ||
|
|
||
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
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
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
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
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.