feat: use vacation subject prefix
This commit is contained in:
+13
-5
@@ -55,7 +55,11 @@ test('rule form uses minute time input and no summary box in exim mode', functio
|
||||
assert_contains('type="time"', $html);
|
||||
assert_contains('step="60"', $html);
|
||||
assert_false(strpos($html, 'summary-card') !== false, 'Summary box should not be rendered in create/edit form');
|
||||
assert_contains('Temat', $html);
|
||||
assert_contains('Przedrostek tematu', $html);
|
||||
assert_contains(': pierwotny temat', $html);
|
||||
assert_contains('Częstość odpowiedzi', $html);
|
||||
assert_contains('Wysyłaj automatyczną odpowiedź dla każdej wiadomości', $html);
|
||||
assert_contains('1 dzień', $html);
|
||||
assert_contains('Treść wiadomości', $html);
|
||||
});
|
||||
|
||||
@@ -99,7 +103,9 @@ test('calendar picker is based on selected rule month and supports month navigat
|
||||
|
||||
$html = render_rule_form($ctx, 'update', [
|
||||
'id' => 'abc',
|
||||
'subject' => 'Urlop',
|
||||
'subject_prefix' => 'Urlop',
|
||||
'reply_every_message' => false,
|
||||
'repeat_minutes' => 1440,
|
||||
'body' => 'Body',
|
||||
'enabled' => true,
|
||||
'start_value' => '2027-02-14T20:00',
|
||||
@@ -132,8 +138,8 @@ test('rule form localizes calendar and preview labels without translating user c
|
||||
assert_false(strpos($html, 'Wybrano') !== false);
|
||||
assert_false(strpos($html, '<th>Pn</th>') !== false);
|
||||
|
||||
$preview = render_preview_box($ctx, ['subject' => 'Delete', 'body' => 'Cancel']);
|
||||
assert_contains('<strong>Subject:</strong> Delete', $preview);
|
||||
$preview = render_preview_box($ctx, ['subject_prefix' => 'Delete', 'body' => 'Cancel']);
|
||||
assert_contains('<strong>Subject prefix:</strong> Delete', $preview);
|
||||
assert_contains('Cancel', $preview);
|
||||
});
|
||||
|
||||
@@ -143,7 +149,9 @@ test('directadmin backend allows only one enabled global rule per account', func
|
||||
$settings = Settings::load($settingsPath);
|
||||
$repo = new RuleRepository(TEST_TMP . '/single-data');
|
||||
$repo->create('alice', [
|
||||
'subject' => 'Pierwsza',
|
||||
'subject_prefix' => 'Pierwsza',
|
||||
'reply_every_message' => false,
|
||||
'repeat_minutes' => 1440,
|
||||
'body' => 'Body',
|
||||
'enabled' => true,
|
||||
'start_value' => '2026-06-10|morning',
|
||||
|
||||
Reference in New Issue
Block a user