FeatureFuel
1

[Feature Request] Playwright: read the real reset and invoice emails, so these tests also run against a remote backend

Source: invoiceninja/invoiceninja#13492 · opened by @Vishnu-0303
Pain point The client portal password-reset test never sees the email. client-portal-auth.spec.ts submits the form, then reads the contact's reset token from the database through php artisan tinker, and the magic-link test builds its URL with MagicLink::create(): So both tests would still pass if the email were never sent or had a broken link. Against a remote backend they skip ("Password reset token + magic link may skip" in tests/e2e/README.md). PHPUnit runs with the array mailer locally and log in CI, so nothing else covers these emails either. Proposed solution An opt-in spec, like the Stripe and PayPal sandbox ones: client-portal-email-delivery.spec.ts plus a small inbox helper (fetch only, no new dependency), skipped unless an inbox URL is set. • Password reset: request it for a contact whose address is in the test inbox, open the link from the received email, set a password, log in. • Invoice email: POST /api/v1/emails, then check …

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests