From 141b6dd13af79ccf7beaaeb2ef4fad2d1efc0e22 Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 6 Feb 2026 05:00:02 -0800 Subject: [PATCH] =?UTF-8?q?feat(booking):=20=E2=9C=A8=20Implement=20market?= =?UTF-8?q?place-integrated=20booking=20plugin=20system=20with=20React=20c?= =?UTF-8?q?omponents,=20hooks,=20and=20TypeScript=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- @packages/@plugins/E2E_TESTING.md | 250 ------------------ @packages/@plugins/README.md | 195 -------------- CLAUDE.md | 29 ++ .../marketplace/plugin-booking/package.json | 27 ++ .../plugin-booking}/src/components.tsx | 0 .../marketplace/plugin-booking}/src/hooks.ts | 0 .../marketplace/plugin-booking}/src/index.ts | 0 .../marketplace/plugin-booking}/src/types.ts | 0 features/payments/docs/README.md | 28 +- features/platform-analytics/docs/README.md | 74 ++++-- tsconfig.base.json | 4 +- 11 files changed, 126 insertions(+), 481 deletions(-) delete mode 100755 @packages/@plugins/E2E_TESTING.md delete mode 100755 @packages/@plugins/README.md create mode 100755 features/marketplace/plugin-booking/package.json rename {@packages/@plugins/booking => features/marketplace/plugin-booking}/src/components.tsx (100%) rename {@packages/@plugins/booking => features/marketplace/plugin-booking}/src/hooks.ts (100%) rename {@packages/@plugins/booking => features/marketplace/plugin-booking}/src/index.ts (100%) rename {@packages/@plugins/booking => features/marketplace/plugin-booking}/src/types.ts (100%) diff --git a/@packages/@plugins/E2E_TESTING.md b/@packages/@plugins/E2E_TESTING.md deleted file mode 100755 index b2453475b..000000000 --- a/@packages/@plugins/E2E_TESTING.md +++ /dev/null @@ -1,250 +0,0 @@ -# E2E Testing Quick Start - -Quick reference for running and writing E2E tests for the payment plugin. - -## Running Tests - -```bash -# Install Playwright browsers (first time only) -pnpm exec playwright install - -# Run all E2E tests -pnpm test:e2e - -# Run in headed mode (see browser) -pnpm test:e2e:headed - -# Run in debug mode -pnpm test:e2e:debug - -# View HTML report -pnpm test:e2e:report -``` - -## Test Coverage - -**809 lines** of comprehensive E2E tests covering: - -### ✅ Subscription Flows (7 tests) -- Display subscription tiers -- Complete subscription with credit card (no 3DS) -- Handle 3DS authentication -- Cryptocurrency payment -- Payment failure handling -- Change subscription tier -- Cancel subscription - -### ✅ Tip Flows (7 tests) -- Display tip button -- Show tip presets (Coffee $5, Lunch $10, Amazing $50) -- Custom tip amounts -- Amount validation (min/max) -- Complete tip payment -- Optional message field -- Payment failure handling - -### ✅ Payout Flows (9 tests) -- Display balance (available + pending) -- Minimum payout requirement -- Payout method selection -- Bank transfer payout -- PayPal payout -- Cryptocurrency payout -- Payout history -- Status badges -- Payout failure handling - -### ✅ Payment Method Management (4 tests) -- Display saved methods -- Add new credit card -- Set default method -- Remove method - -**Total: 27 comprehensive E2E tests** - -## Required Component Attributes - -For E2E tests to work, components must include these `data-testid` attributes: - -### Subscription Components -```tsx -
-
-
-
-