Commit graph

5 commits

Author SHA1 Message Date
senke
31c02923d9 test(e2e): skip 14 remaining @critical baseline failures, document per root-cause — rc1-day2 finish
After two rounds of root-cause fixes (40 → 14 failures), the
residual 14 tests all fall into seven classes that are orthogonal
to v1.0.7 money-movement surface AND require investigations that
exceed the rc1 scope:

  #57/v107-e2e-05 (5 tests) — upload backend submit hangs
    27-upload:54, 43-upload-deep:663/713/747/781
  #58/v107-e2e-06 (2 tests) — chat backend echo missing
    29-chat-functional:70, :142
  #59/v107-e2e-07 (2 tests) — workflow cascade under parallel load
    13-workflows:17, :148
  #60/v107-e2e-08 (1 test) — /feed page crash (browser-level)
    11-accessibility-ethics:342
  #61/v107-e2e-09 (2 tests) — chat DOM-detach race conditions
    41-chat-deep:266, :604
  #62/v107-e2e-10 (1 test) — playlist edit redirect
    playlists-edit-audit:14
  #63/v107-e2e-11 (1 test) — Playwright 50MB buffer limit (test bug)
    43-upload-deep:364

Each test skipped with a test.skip + inline comment pointing at
its ticket, and SKIPPED_TESTS.md updated with the classification
table + unskip procedure.

Baseline trajectory over the rc1 sprint:
  Pre-fixes:      122 pass / 40 fail / 9 skip
  Round 1 (6 RC): 144 pass / 17 fail / 10 skip  (-23 fail)
  Round 2 (wide): 146 pass / 14 fail / 11 skip  (-3 fail)
  Post-skip:      expected 146 pass / 0 fail / ~25 skip

Rationale vs "fix now":
  * Each of the seven classes requires a backend-infra dive
    (ClamAV, WebSocket, chat worker config) or test-infra refactor
    (per-worker DB isolation, animation waits). Each 2-4h minimum,
    with non-trivial regression risk on adjacent tests.
  * 146/171 passing, 0 failing is a strictly more auditable release
    state than SKIP_E2E=1 masking. The skips are explicit per-test
    with documented root cause, not a blanket gate bypass.
  * Satisfies the three conditions the user set yesterday for
    formalising a scope reduction: each skip is documented, each
    has an owner ticket, unskip procedure is traceable.

No v1.0.7 surface code touched.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 20:05:31 +02:00
senke
5349b80052 fix(e2e): stable upload-trigger testid, unskip v107-e2e-04 — rc1-day2 root cause #2
12 @critical failures on 27-upload + 43-upload-deep + the skipped
04-tracks:207 shared one root cause: the LibraryPageToolbar "New"
button (renders t('library.new'), localized to "New"/"Nouveau") was
targeted by regex `/upload|uploader/i` or `/upload|importer|
ajouter/i` — none matched the actual label. The 2026-04-08
console.log → expect conversion pinned assertions against a label
the UI never produced.

Fix: `data-testid="library-upload-cta"` on the toolbar CTA +
aria-label fallback ("Upload track"). Tests target by testid,
immune to future i18n/copy changes.

Results after fix:
  * 27-upload.spec.ts — 6/7 now pass. The remaining failure
    (test 54 "full upload flow") is a DIFFERENT root cause:
    dialog doesn't close after upload submit (60s timeout).
    Not a locator issue — tracked separately as #55 (upload
    backend hangs on submit, suspected ClamAV or validation
    silently failing in test env).
  * 04-tracks.spec.ts:207 — unskipped, passes (was #50, now
    closed; SKIPPED_TESTS.md updated with resolution note).
  * 43-upload-deep.spec.ts helper — migrated to the same testid
    so the "button not found" class of failure is gone.
    Remaining 43-upload-deep failures are same upload-flow
    class as 27-upload:54 (tracked in #55).

Gain: 8/12 upload-family tests recovered. Remaining 4 are a
separate investigation.

Post-fix validation: ran `27-upload + 04-tracks` under
Playwright — 7 passed, 2 failed, 1 skipped (skip unrelated).
The 2 failures are both the #55 submit-hang root cause, not
the locator one.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 16:38:28 +02:00
senke
a3f4ac6b70 fix: sync E2E tests with seed data + i18n fix
- Update E2E test credentials to match actual seed users
  (user@veza.music, artist@veza.music, admin@veza.music, mod@veza.music)
- Fix hardcoded "Suggested Accounts" in SuggestionsWidget with i18n key
- Replace hardcoded amelie_dubois references with CONFIG.users.creator
- Refactor auth, player, upload E2E tests for reliability
- Add tmt test plans and scripts for CI integration
- Simplify CI workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 19:42:03 +02:00
senke
6fad0ad68d fix: stabilize frontend — 98 TS errors to 0, align API endpoints, optimize bundle
- Fix 98 TypeScript errors across 37 files:
  - Service layer double-unwrapping (subscriptionService, distributionService, gearService)
  - Self-referencing variables in SearchPageResults
  - FeedView/ExploreView .posts→.items alignment
  - useQueueSync Zustand subscribe API
  - AdminAuditLogsView missing interface fields
  - Toast proxy type, interceptor type narrowing
  - 22 unused imports/variables removed
  - 5 storybook mock data fixes

- Align frontend API calls with backend endpoints:
  - Analytics: useAnalyticsView now calls /creator/analytics/dashboard (was /analytics)
  - Chat: chatService uses /conversations (was mock data), WS URL from backend token
  - Dashboard StatsSection: uses real /dashboard API data (was hardcoded zeros)
  - Settings: suppress 2FA toast error when endpoint unavailable

- Fix marketplace products: seed uses 'active' status (was 'published')
- Enrich seed: admin follows all creators (feed has content)

- Optimize bundle: vendor catch-all 793KB→318KB gzip (-60%)
  Split into vendor-charts, vendor-emoji, vendor-swagger, vendor-media, etc.

- Clean repo: remove ~100 orphaned screenshots, audit reports, logs from root

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 21:18:49 +01:00
senke
20a16f7cbe test: add comprehensive e2e test suite (34 spec files)
New tests/e2e/ suite covering:
- Auth, navigation, player, tracks, playlists
- Search, discover, social, marketplace, chat
- Accessibility, API, workflows, edge cases
- Routes coverage, forms validation, modals
- Empty states, responsive, network errors
- Error boundary, performance, visual regression
- Cross-browser, profile, smoke, upload
- Storybook, deep pages, visual bugs
- Includes fixtures, helpers, global setup/teardown
- Playwright config and coverage map

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 11:36:22 +01:00