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.
Comments
Similar requests
Import invoices with several items into InvoiceNinja
0 votes · 0 comments
Invoices created from Tasks/Projects leave invoice custom fields blank (e.g. Type)
1 vote · 0 comments
invoice numbering reset button
0 votes · 0 comments
Feature Request: Reminder emails should not be sent for clients who opt-in for auto billing
0 votes · 0 comments
Importing invoices from self-hosted emails previously archived clients
0 votes · 0 comments
No comments yet.