test(admin): unit and browser tests for the mail editor fields

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 14:23:28 +01:00
parent 45017039b2
commit 1ae1a9553f
12 changed files with 1009 additions and 9 deletions

View File

@@ -101,10 +101,24 @@ DOCKER_TESTS=(
)
# admin stage: vitest files that must pass.
ADMIN_FILES=(tests/form/mail-smoke.test.ts)
ADMIN_FILES=(
tests/form/mail-smoke.test.ts
tests/form/CodeEditorField.test.ts
tests/form/MailPreviewField.test.ts
tests/form/insertImage.test.ts
tests/form/MailImagePicker.test.ts
tests/form/ColorPickerField.test.ts
tests/form/MailImageField.test.ts
tests/form/FormViewMail.test.ts
tests/list/RowStateBadges.test.ts
tests/views/SettingsFormView.test.ts
)
# admin stage: browser vitest files that must pass.
ADMIN_BROWSER_FILES=(tests/browser/codeeditor-smoke.test.ts)
ADMIN_BROWSER_FILES=(
tests/browser/codeeditor-smoke.test.ts
tests/browser/codeeditor.test.ts
)
# consumers: <repo-dir-var-name is resolved in run_consumers>
# sm-user-plugin and sm-paymentgateway-plugin mail tests.