Konrad
498ed5a3ec
Resolve conflicts
2026-03-02 22:05:29 +01:00
Maikel Linke
f2eec5685e
Include amount in refund email
2026-02-23 13:00:02 +11:00
Maikel Linke
b6438992b9
Speed up spec by not saving to database
2026-02-20 13:43:09 +11:00
Maikel Linke
69108df206
Use Rails to translate email subject
...
And translate the subject with the user's locale.
If the subject doesn't need parameters, you don't need to supply it.
Rails finds the translation automatically.
2026-02-20 13:43:09 +11:00
Maikel Linke
de873ae42c
Add void action to Taler for refunds
2026-02-20 13:43:09 +11:00
Maikel Linke
dcb6f4676d
Remove all unnecessary spec_helper require statements
...
The `.rspec` file is doing this for us.
2026-01-21 12:35:34 +11:00
Konrad
e814fdd447
Remove test for active white labeling in test email as proposed by David
2025-12-29 12:36:50 +01:00
Konrad
3a75c3446e
Update backorder mailer specs to check that these hub facing emails remain unaffected by white labelling (there are no customer facing emails here)
...
Also make use of the newly separated shared_examples
2025-12-29 12:18:55 +01:00
Konrad
29a76fd721
Update report mailer specs to check that this enterprise facing email remains unaffected by white labelling (there are no customer facing emails here)
...
Also make use of the newly separated shared_examples
2025-12-29 12:18:55 +01:00
Konrad
593bd89095
Update test mailer specs to check that this super admin facing email remains unaffected by white labelling (there are no user or customer facing emails here)
...
Also make use of the newly separated shared_examples
2025-12-29 12:18:55 +01:00
Konrad
0079ed219b
Update producer mailer specs to check that this producer facing email remains unaffected by white labelling (there are no customer facing emails here)
...
Also make use of the newly separated shared_examples
2025-12-29 12:18:55 +01:00
Konrad
5957d99812
Update enterprise mailer specs to check that enterprise facing emails remain unaffected by white labelling (there are no customer facing emails here)
...
Also make use of the newly separated shared_examples
2025-12-29 12:18:55 +01:00
Konrad
89453ec758
Update subscription mailer specs to check that customer facing emails are white labelled, while shop facing emails are not
...
Also make use of the newly separated shared_examples
Made the check for link to order page more general, because on my system a double quote was expected but a single quote was generated
2025-12-29 12:18:55 +01:00
Konrad
0de4f2f596
Update payment mailer specs to check that customer facing emails are white labelled, while shop facing emails are not
...
Also make use of the newly separated shared_examples
2025-12-29 12:18:55 +01:00
Konrad
183cbecef6
Update shipment mailer specs to check that customer facing emails are white labelled (there are no shop facing emails here)
...
Make use of the newly separated shared_examples
2025-12-29 12:18:55 +01:00
Konrad
ab6a49e568
Update order mailer specs to check that customer facing emails are white labelled, while shop facing emails are not
...
Also make use of the newly separated shared_examples
Including the invoice email was too tricky for me for now, sorry
2025-12-29 12:18:55 +01:00
Konrad
52ddb29dc7
Update user mailer specs to check that white labelling does not affect these emails
...
Move tests to separate file for reuse in other emails
Pass on :mail symbol and obtain the mail-object using public_send() to call it with different names
2025-12-29 12:18:54 +01:00
David Cook
9e9cc28062
Update spec/mailers/producer_mailer_spec.rb
2025-06-30 09:19:38 +02:00
Ahmed Ejaz
80fc0a5790
Exclude customer personal information from order summary in email
2025-06-30 09:19:38 +02:00
Ahmed Ejaz
5a13aa1c8a
Add phone and email fields to customer order summary in ProducerMailer
2025-06-30 09:19:38 +02:00
cyrillefr
5788698e8e
Fixes RSpecRailsInferredSpecType offenses in jobs & mailers
2025-05-20 12:57:11 +02:00
Ahmed Ejaz
6f9b5e2c54
fix specs
...
- add a new class .line-items in the orders-summary to better differentiate the line-items summary vs customer-details. This css class is not defined, just .customer-order for customer details. It's only used to make a differentiation in the specs
- use the updated `parsed_email` memoized helper method for mail body content
2025-04-28 15:11:54 +05:00
Ahmed Ejaz
57c30591bc
13128: add order number in OC report
...
- Make Customer Code independant of Customer Names setting
2025-04-28 15:11:52 +05:00
Konrad
d97cb9ccb3
Update specs
2025-04-21 20:11:50 +02:00
Konrad
9ee37ee0b6
Update specs
2025-04-01 18:11:13 +02:00
Maikel Linke
8a8602158b
Test link in HTML email with Capybara
2025-03-27 12:06:05 +11:00
Maikel Linke
b554248cfe
Test for email content
2025-03-27 11:48:41 +11:00
Maikel Linke
1b8ebc3105
Test with known text
2025-03-27 11:38:35 +11:00
Maikel Linke
edcb04ed50
Save time by not storing test data in DB
2025-03-27 11:31:16 +11:00
Maikel Linke
e12c51edd1
Use RSpec matchers for emails
2025-03-27 11:29:15 +11:00
filipefurtad0
e017b14f31
Adds spec for payment authorization emails
2025-03-26 12:19:02 +00:00
filipefurtad0
df3cbe84b6
Asserts that the order shipment and pick up emails have the distributors email as reply to address
2025-03-26 12:19:02 +00:00
filipefurtad0
98cba128e0
Asserts that the invoice email has the distributors email as reply to address
2025-03-26 12:18:55 +00:00
filipefurtad0
ea82b162ac
Asserts that the order cancellation email for customer has the distributors email as reply to address
2025-03-26 12:00:48 +00:00
filipefurtad0
9a161cae5b
Asserts that the order confirmation email for shops has the customer's email as reply to address
2025-03-26 12:00:48 +00:00
filipefurtad0
6ee1c8ca29
Asserts that the order cancellation email for shops has the customer's email as reply to address
2025-03-26 12:00:41 +00:00
filipefurtad0
c95c598f82
Asserts that the enterprise welcome email has no reply to address
...
Asserts that manager invitation email has the inviting enterprise as reply to address
2025-03-26 11:57:59 +00:00
David Cook
859a20b7a7
Ensure both email formats contain url
2025-02-19 14:20:28 +11:00
David Cook
664119ddcf
Update test for multi-part email
...
Now that it's a multi-part email, we have to select the html part for the test.
Another option is to simply check mail.to_s, but this also includes mail headers so doesn't specifically test the body.
2025-02-18 16:15:04 +11:00
David Cook
c9f5dd2d0b
Refactor: rename subject to be consistent
...
Hmm, in different specs it gets called 'mail', 'email', 'message'. The object is a Mail::Message object. The method to generate the object is called `mail`, so I went with that.
2025-02-18 16:07:22 +11:00
kernal053
bad32e226e
Fix label for other adjustments and add spec correspodingly
2025-01-02 16:29:48 +01:00
Ahmed Ejaz
604a47bd96
13007: add specs for text mail
2024-12-10 05:49:35 +05:00
Ahmed Ejaz
bb70d21a35
13007: add specs
2024-12-10 05:34:32 +05:00
Ahmed Ejaz
af200ab4a0
12993: fix lint issues
2024-12-02 18:40:18 +05:00
Ahmed Ejaz
bbdee7c0f3
12993: add included tax in text report
2024-12-02 18:04:18 +05:00
Maikel Linke
74c80c9fff
Prepare BackorderJob for stock controlled items
...
We want to trigger the backordering for any linked product now. So let's
do that check early and then select the variants in the background.
It means less data passed to the job and less space for race conditions.
2024-10-03 13:28:20 +10:00
Maikel Linke
989a6d57e0
Notify user of failed backorder completion
2024-09-26 14:32:55 +10:00
Maikel Linke
495634b60c
Send error notification to owner
2024-09-26 14:32:55 +10:00
Maikel Linke
19ef047193
Create observable reports blob early
...
This will allow us to check for completion of the report later in case
websockets fail.
2024-08-16 14:37:57 +10:00
Gaetan Craig-Riou
b5cf47d306
Fix producer mailer
2024-07-03 11:21:28 +10:00