Skip to content

[PB-7179]: test/partners subaccount console tests - #195

Open
jzunigax2 wants to merge 2 commits into
test/management-wholesalers-console-testsfrom
test/partners-subaccount-console-tests
Open

jzunigax2 wants to merge 2 commits into
test/management-wholesalers-console-testsfrom
test/partners-subaccount-console-tests

Conversation

@jzunigax2

Copy link
Copy Markdown
Contributor

What

Component tests for the Partners and Sub-account consoles: PartnersLoginPage, PartnersAuthRoute, SubAccountLoginPage, SubAccountAuthRoute and CreateSubAccountModal

How

  • Auth routes reuse the auth-route contract from [PB-7179]: test/enhance authentication and account creation tests #194 . Partners also covers the forced 2FA setup.
  • PartnersLoginPage: the forgot-password link, the 2FA step landing on /partners/sub-accounts, and the redirect when already logged in.
  • SubAccountLoginPage: mocks isSharedConsoleHostname to switch between the shared console and a custom domain. Covers the branding skeleton, the SSO_REQUIRED message, and a custom domain with SSO set up showing only the SSO button.
  • CreateSubAccountModal: the create-account contract from PR 3, plus the success step showing the credentials to share, with the password masked.
  • Faster typing: renderWithProviders now uses userEvent.setup({ delay: null }), so files with a lot of typing run faster.

- Introduced unit tests for CreateSubAccountModal, validating account creation success and modal behavior.
- Added tests for PartnersAuthRoute and PartnersLoginPage, ensuring proper authentication flow and handling of two-factor authentication.
- Implemented tests for SubAccountAuthRoute and SubAccountLoginPage, covering login scenarios and SSO integration.
- Enhanced testing utilities for consistent rendering and interaction across authentication components.
@jzunigax2 jzunigax2 self-assigned this Dec 4, 2026
@jzunigax2
jzunigax2 added this pull request to stack #193 December 4, 2026 15:59
@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 662c751 Commit Preview URL

Branch Preview URL
Dec 04 2026, 03:44 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