NYM-1199: Add visual flow report for Node Families E2E tests
Enhances Playwright E2E tests by capturing full-page screenshots at each journey step, which are then stitched into a static `e2e-report/index.html` filmstrip. This report is uploaded as a CI artifact (even on failure) to provide a visual overview of test execution, aiding in the detection of UI regressions and expediting debugging of test failures.
This commit is contained in:
@@ -72,7 +72,24 @@ jobs:
|
||||
run: |
|
||||
cp -R nym-wallet/storybook-static "$OUTPUT_DIR"
|
||||
|
||||
- name: Upload storybook to CI build server
|
||||
- name: Stage e2e visual flow report
|
||||
# Generated by the Playwright run (globalTeardown) regardless of pass/fail; `always()`
|
||||
# so a failing run still uploads the filmstrip for inspection. mkdir covers the
|
||||
# e2e-failure path where "Prepare build output directory" was skipped.
|
||||
if: always()
|
||||
shell: bash
|
||||
env:
|
||||
REPORT_DIR: ci-builds/${{ github.ref_name }}/nym-wallet/e2e-report/
|
||||
run: |
|
||||
if [ -d nym-wallet/e2e-report ]; then
|
||||
mkdir -p "$REPORT_DIR"
|
||||
cp -R nym-wallet/e2e-report/. "$REPORT_DIR"
|
||||
else
|
||||
echo "no e2e-report produced"
|
||||
fi
|
||||
|
||||
- name: Upload CI artifacts (storybook + e2e visual report)
|
||||
if: always()
|
||||
continue-on-error: true
|
||||
uses: easingthemes/ssh-deploy@main
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user