Skip to content

[PB-7179]: test/enhance authentication and account creation tests - #194

Open
jzunigax2 wants to merge 1 commit into
test/sub-account-hook-testsfrom
test/management-wholesalers-console-tests
Open

jzunigax2 wants to merge 1 commit into
test/sub-account-hook-testsfrom
test/management-wholesalers-console-tests

Conversation

@jzunigax2

Copy link
Copy Markdown
Contributor

What

Component tests for the Management and Wholesalers consoles:

  • ManagementLoginPage, ManagementAuthRoute and CreateWholesalerModal;
  • WholesalersAuthRoute and CreateWholesalerPartnerModal.

How

  • ManagementLoginPage runs against the real ManagementProvider, with the mock axios adapter on managementAxios.
  • Shared test code in src/testing/
  • create-account-modal-contract.tsx: one contract for the create-account modals, which are nearly the same component

- Added unit tests for the ManagementLoginPage, covering credential submission, two-factor authentication, and error handling scenarios.
- Introduced tests for CreateWholesalerModal and CreateWholesalerPartnerModal, validating form behavior and submission logic.
- Implemented a new testing utility for rendering authentication routes, ensuring consistent testing across different components.
- Enhanced existing login utilities to streamline credential submission and two-factor code verification in tests.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
object-storage-management-web acad000 Commit Preview URL

Branch Preview URL
Dec 04 2026, 03:03 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant