diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 3f08bf600..9b51efaf0 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -114,6 +114,7 @@ jobs:
working-directory: './tools/e2e'
- name: Run Playwright Tests
+ id: playwright
run: npx playwright test --retries=3
working-directory: './tools/e2e'
env:
@@ -126,7 +127,23 @@ jobs:
name: playwright-report
path: tools/e2e/playwright-report/
retention-days: 30
-
+
+ - name: Update Playwright Snapshots
+ if: failure() && steps.playwright.outcome == 'failure'
+ continue-on-error: true
+ run: npx playwright test --update-snapshots --reporter=list
+ working-directory: './tools/e2e'
+ env:
+ BASE__URL: http://localhost:8080
+
+ - name: Upload Playwright Snapshots
+ if: failure() && steps.playwright.outcome == 'failure'
+ uses: actions/upload-artifact@v4.6.2
+ with:
+ name: playwright-snapshots
+ path: tools/e2e/snapshots/
+ retention-days: 30
+
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2.2.2
diff --git a/CLAUDE.md b/CLAUDE.md
index 6bf579fff..04a90f9a0 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -28,6 +28,7 @@ npm run lint
- i18n texts live in `backend/i18n`, translations are generated into the frontend — do not edit generated translation files by hand.
- Do not write JsDoc comments.
+- Define colors only in `src/app/theme/_colors.scss`: literal values, the light/dark palettes and computed colors (`shade()`, `fade()`, ...). Everywhere else use the `$color-*` variables. In TypeScript, read theme colors with `ThemeService.getColor()`. Exceptions are semantic data colors (avatar colors, rule icon colors, chart colors).
- In tests, keep `verify` calls and `expect` calls next to each other, without blank lines between them.
## Backend
diff --git a/backend/extensions/Squidex.Extensions/Actions/CreateContent/CreateContentFlowStep.cs b/backend/extensions/Squidex.Extensions/Actions/CreateContent/CreateContentFlowStep.cs
index 894ac2ea6..9d009b5ea 100644
--- a/backend/extensions/Squidex.Extensions/Actions/CreateContent/CreateContentFlowStep.cs
+++ b/backend/extensions/Squidex.Extensions/Actions/CreateContent/CreateContentFlowStep.cs
@@ -98,12 +98,12 @@ public sealed record CreateContentFlowStep : FlowStep, IConvertibleToAction
ContentDataCommand command;
if (!string.IsNullOrWhiteSpace(Id))
{
- command = new UpsertCommand
- {
+ command = new UpsertCommand
+ {
ContentId = DomainId.Create(Id.Trim()),
EnrichDefaults = true,
EnrichRequiredFields = false,
- Patch = Patch,
+ Patch = Patch,
Status = status
};
}
diff --git a/backend/i18n/frontend_de.json b/backend/i18n/frontend_de.json
index fdfe0a4fe..7572c9c38 100644
--- a/backend/i18n/frontend_de.json
+++ b/backend/i18n/frontend_de.json
@@ -419,6 +419,10 @@
"common.tagsAll": "Alle Tags",
"common.teams": "Teams",
"common.templates": "Vorlagen",
+ "common.theme": "Design",
+ "common.themeDark": "Dunkel",
+ "common.themeLight": "Hell",
+ "common.themeSystem": "System",
"common.time": "Zeit",
"common.to": "Bis",
"common.togglePanel": "Toggle panel size",
diff --git a/backend/i18n/frontend_en.json b/backend/i18n/frontend_en.json
index 1eddcb353..fa40c36a5 100644
--- a/backend/i18n/frontend_en.json
+++ b/backend/i18n/frontend_en.json
@@ -419,6 +419,10 @@
"common.tagsAll": "All tags",
"common.teams": "Teams",
"common.templates": "Templates",
+ "common.theme": "Theme",
+ "common.themeDark": "Dark",
+ "common.themeLight": "Light",
+ "common.themeSystem": "System",
"common.time": "Time",
"common.to": "To",
"common.togglePanel": "Toggle panel size",
diff --git a/backend/i18n/frontend_fr.json b/backend/i18n/frontend_fr.json
index 367f026b3..08a5196dc 100644
--- a/backend/i18n/frontend_fr.json
+++ b/backend/i18n/frontend_fr.json
@@ -419,6 +419,10 @@
"common.tagsAll": "Toutes les balises",
"common.teams": "Équipes",
"common.templates": "Modèles",
+ "common.theme": "Thème",
+ "common.themeDark": "Sombre",
+ "common.themeLight": "Clair",
+ "common.themeSystem": "Système",
"common.time": "Temps",
"common.to": "Pour",
"common.togglePanel": "Toggle panel size",
diff --git a/backend/i18n/frontend_it.json b/backend/i18n/frontend_it.json
index 34c7a03a0..6645e8286 100644
--- a/backend/i18n/frontend_it.json
+++ b/backend/i18n/frontend_it.json
@@ -419,6 +419,10 @@
"common.tagsAll": "Tutti i tag",
"common.teams": "Teams",
"common.templates": "Templates",
+ "common.theme": "Tema",
+ "common.themeDark": "Scuro",
+ "common.themeLight": "Chiaro",
+ "common.themeSystem": "Sistema",
"common.time": "Ora",
"common.to": "To",
"common.togglePanel": "Toggle panel size",
diff --git a/backend/i18n/frontend_nl.json b/backend/i18n/frontend_nl.json
index b42812384..9f75a32dd 100644
--- a/backend/i18n/frontend_nl.json
+++ b/backend/i18n/frontend_nl.json
@@ -419,6 +419,10 @@
"common.tagsAll": "Alle tags",
"common.teams": "Teams",
"common.templates": "Templates",
+ "common.theme": "Thema",
+ "common.themeDark": "Donker",
+ "common.themeLight": "Licht",
+ "common.themeSystem": "Systeem",
"common.time": "Tijd",
"common.to": "Naar",
"common.togglePanel": "Toggle panel size",
diff --git a/backend/i18n/frontend_pt.json b/backend/i18n/frontend_pt.json
index 0f1d37355..582f90480 100644
--- a/backend/i18n/frontend_pt.json
+++ b/backend/i18n/frontend_pt.json
@@ -419,6 +419,10 @@
"common.tagsAll": "Todas as etiquetas",
"common.teams": "Equipas",
"common.templates": "Modelos",
+ "common.theme": "Tema",
+ "common.themeDark": "Escuro",
+ "common.themeLight": "Claro",
+ "common.themeSystem": "Sistema",
"common.time": "Hora",
"common.to": "Para",
"common.togglePanel": "Toggle panel size",
diff --git a/backend/i18n/frontend_zh.json b/backend/i18n/frontend_zh.json
index 0b70f8e5c..f7430b53c 100644
--- a/backend/i18n/frontend_zh.json
+++ b/backend/i18n/frontend_zh.json
@@ -419,6 +419,10 @@
"common.tagsAll": "所有标签",
"common.teams": "Teams",
"common.templates": "Templates",
+ "common.theme": "主题",
+ "common.themeDark": "深色",
+ "common.themeLight": "浅色",
+ "common.themeSystem": "跟随系统",
"common.time": "时间",
"common.to": "To",
"common.togglePanel": "Toggle panel size",
diff --git a/backend/i18n/source/frontend_de.json b/backend/i18n/source/frontend_de.json
index 13d657f05..9b0d9aa79 100644
--- a/backend/i18n/source/frontend_de.json
+++ b/backend/i18n/source/frontend_de.json
@@ -400,6 +400,10 @@
"common.tagsAll": "Alle Tags",
"common.teams": "Teams",
"common.templates": "Vorlagen",
+ "common.theme": "Design",
+ "common.themeDark": "Dunkel",
+ "common.themeLight": "Hell",
+ "common.themeSystem": "System",
"common.time": "Zeit",
"common.to": "Bis",
"common.update": "Aktualisieren",
diff --git a/backend/i18n/source/frontend_en.json b/backend/i18n/source/frontend_en.json
index 1eddcb353..fa40c36a5 100644
--- a/backend/i18n/source/frontend_en.json
+++ b/backend/i18n/source/frontend_en.json
@@ -419,6 +419,10 @@
"common.tagsAll": "All tags",
"common.teams": "Teams",
"common.templates": "Templates",
+ "common.theme": "Theme",
+ "common.themeDark": "Dark",
+ "common.themeLight": "Light",
+ "common.themeSystem": "System",
"common.time": "Time",
"common.to": "To",
"common.togglePanel": "Toggle panel size",
diff --git a/backend/i18n/source/frontend_fr.json b/backend/i18n/source/frontend_fr.json
index d9935427e..3487fa3fe 100644
--- a/backend/i18n/source/frontend_fr.json
+++ b/backend/i18n/source/frontend_fr.json
@@ -355,6 +355,10 @@
"common.tagsAll": "Toutes les balises",
"common.teams": "Équipes",
"common.templates": "Modèles",
+ "common.theme": "Thème",
+ "common.themeDark": "Sombre",
+ "common.themeLight": "Clair",
+ "common.themeSystem": "Système",
"common.time": "Temps",
"common.to": "Pour",
"common.update": "Mise à jour",
diff --git a/backend/i18n/source/frontend_it.json b/backend/i18n/source/frontend_it.json
index 7fc716a4b..76d8d212b 100644
--- a/backend/i18n/source/frontend_it.json
+++ b/backend/i18n/source/frontend_it.json
@@ -276,6 +276,10 @@
"common.tagAddSchema": ", aggiungi schema",
"common.tags": "Tag",
"common.tagsAll": "Tutti i tag",
+ "common.theme": "Tema",
+ "common.themeDark": "Scuro",
+ "common.themeLight": "Chiaro",
+ "common.themeSystem": "Sistema",
"common.time": "Ora",
"common.update": "Aggiorna",
"common.upload": "Carica",
diff --git a/backend/i18n/source/frontend_nl.json b/backend/i18n/source/frontend_nl.json
index e6b2203c2..b9ede38d9 100644
--- a/backend/i18n/source/frontend_nl.json
+++ b/backend/i18n/source/frontend_nl.json
@@ -327,6 +327,10 @@
"common.tagAddSchema": ", om schema toe te voegen",
"common.tags": "Tags",
"common.tagsAll": "Alle tags",
+ "common.theme": "Thema",
+ "common.themeDark": "Donker",
+ "common.themeLight": "Licht",
+ "common.themeSystem": "Systeem",
"common.time": "Tijd",
"common.to": "Naar",
"common.update": "Update",
diff --git a/backend/i18n/source/frontend_pt.json b/backend/i18n/source/frontend_pt.json
index 328246c18..587703c76 100644
--- a/backend/i18n/source/frontend_pt.json
+++ b/backend/i18n/source/frontend_pt.json
@@ -348,6 +348,10 @@
"common.tagsAll": "Todas as etiquetas",
"common.teams": "Equipas",
"common.templates": "Modelos",
+ "common.theme": "Tema",
+ "common.themeDark": "Escuro",
+ "common.themeLight": "Claro",
+ "common.themeSystem": "Sistema",
"common.time": "Hora",
"common.to": "Para",
"common.update": "Atualização",
diff --git a/backend/i18n/source/frontend_zh.json b/backend/i18n/source/frontend_zh.json
index 22e1a17f8..92b27a8dc 100644
--- a/backend/i18n/source/frontend_zh.json
+++ b/backend/i18n/source/frontend_zh.json
@@ -295,6 +295,10 @@
"common.tagAddSchema": ", 添加Schemas",
"common.tags": "标签",
"common.tagsAll": "所有标签",
+ "common.theme": "主题",
+ "common.themeDark": "深色",
+ "common.themeLight": "浅色",
+ "common.themeSystem": "跟随系统",
"common.time": "时间",
"common.update": "更新",
"common.upload": "上传",
diff --git a/backend/src/Squidex.Domain.Apps.Entities/Backup/BackupJob.cs b/backend/src/Squidex.Domain.Apps.Entities/Backup/BackupJob.cs
index a795da638..f8abdd8eb 100644
--- a/backend/src/Squidex.Domain.Apps.Entities/Backup/BackupJob.cs
+++ b/backend/src/Squidex.Domain.Apps.Entities/Backup/BackupJob.cs
@@ -69,7 +69,10 @@ public sealed class BackupJob(
var appName = context.TryGetArgument(ArgAppName) ?? "app";
// We store the file in a the asset store and make the information available.
- context.Job.File = new JobFile($"backup-{appName}-{context.Job.Started:yyyy-MM-dd_HH-mm-ss}.zip", "application/zip");
+ context.Job.File =
+ new JobFile(
+ $"backup-{appName}-{context.Job.Started:yyyy-MM-dd_HH-mm-ss}.zip",
+ "application/zip");
// Use a readable name to describe the job.
context.Job.Description = T.Get("jobs.backup");
@@ -77,7 +80,6 @@ public sealed class BackupJob(
var handlers = backupHandlerFactory.CreateMany();
await using var stream = backupArchiveLocation.OpenStream(context.Job.Id);
-
using (var writer = await backupArchiveLocation.OpenWriterAsync(stream, ct))
{
await writer.WriteVersionAsync();
diff --git a/backend/src/Squidex.Domain.Apps.Entities/Jobs/JobProcessor.cs b/backend/src/Squidex.Domain.Apps.Entities/Jobs/JobProcessor.cs
index 1fbc4d378..3d0c210a5 100644
--- a/backend/src/Squidex.Domain.Apps.Entities/Jobs/JobProcessor.cs
+++ b/backend/src/Squidex.Domain.Apps.Entities/Jobs/JobProcessor.cs
@@ -84,14 +84,12 @@ public sealed class JobProcessor
LogMessages.LogClearingJobs(log, ownerId);
var job = state.Value.Jobs.Find(x => x.Id == jobId);
-
if (job == null)
{
return;
}
var runner = runners.FirstOrDefault(x => x.Name == job.TaskName);
-
if (runner != null)
{
await runner.CleanupAsync(job);
diff --git a/backend/src/Squidex/Areas/Api/Views/Shared/Docs.cshtml b/backend/src/Squidex/Areas/Api/Views/Shared/Docs.cshtml
index 98a0a8cd6..a992484f6 100644
--- a/backend/src/Squidex/Areas/Api/Views/Shared/Docs.cshtml
+++ b/backend/src/Squidex/Areas/Api/Views/Shared/Docs.cshtml
@@ -17,6 +17,12 @@
+
+
diff --git a/tools/e2e/playwright.config.ts b/tools/e2e/playwright.config.ts
index 7440bc9fc..4acb9657f 100644
--- a/tools/e2e/playwright.config.ts
+++ b/tools/e2e/playwright.config.ts
@@ -89,6 +89,39 @@ export default defineConfig({
},
},
+ {
+ name: 'visual-setup',
+ testMatch: 'tests/visual/_setup.ts',
+ dependencies: ['login'],
+ use: {
+ storageState: STORAGE_STATE,
+ },
+ },
+
+ {
+ name: 'visual light',
+ testMatch: 'tests/visual/*.spec.ts',
+ dependencies: ['visual-setup'],
+ use: {
+ ...devices['Desktop Chrome'],
+ colorScheme: 'light',
+ ignoreHTTPSErrors: true,
+ storageState: STORAGE_STATE,
+ },
+ },
+
+ {
+ name: 'visual dark',
+ testMatch: 'tests/visual/*.spec.ts',
+ dependencies: ['visual-setup'],
+ use: {
+ ...devices['Desktop Chrome'],
+ colorScheme: 'dark',
+ ignoreHTTPSErrors: true,
+ storageState: STORAGE_STATE,
+ },
+ },
+
{
name: 'logged out',
testMatch: 'tests/*.spec.ts',
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-dark-linux.png
new file mode 100644
index 000000000..29f1e0911
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-dark-win32.png
new file mode 100644
index 000000000..3f110ab5d
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-light-linux.png
new file mode 100644
index 000000000..3e2ab66f1
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-light-win32.png
new file mode 100644
index 000000000..1b88db7d6
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-event-consumers-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-dark-linux.png
new file mode 100644
index 000000000..e9c57ec12
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-dark-win32.png
new file mode 100644
index 000000000..394f84cc0
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-light-linux.png
new file mode 100644
index 000000000..592847ce8
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-light-win32.png
new file mode 100644
index 000000000..ad93b6f3c
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-restore-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-dark-linux.png
new file mode 100644
index 000000000..21f222319
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-dark-win32.png
new file mode 100644
index 000000000..79f329208
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-light-linux.png
new file mode 100644
index 000000000..6bf571475
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-light-win32.png
new file mode 100644
index 000000000..160234b51
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/administration-users-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-dark-linux.png
new file mode 100644
index 000000000..ad6a054c7
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-dark-win32.png
new file mode 100644
index 000000000..1cbcf042a
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-light-linux.png
new file mode 100644
index 000000000..ebd6ec071
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-light-win32.png
new file mode 100644
index 000000000..aa6ade06a
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-docs-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-dark-linux.png
new file mode 100644
index 000000000..b5ee59883
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-dark-win32.png
new file mode 100644
index 000000000..debf44b91
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-light-linux.png
new file mode 100644
index 000000000..0086a558f
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-light-win32.png
new file mode 100644
index 000000000..dfbd91fa4
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-graphql-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-dark-linux.png
new file mode 100644
index 000000000..a58bf0baf
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-dark-win32.png
new file mode 100644
index 000000000..9a467265c
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-light-linux.png
new file mode 100644
index 000000000..da4c15645
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-light-win32.png
new file mode 100644
index 000000000..ac83427ab
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/api-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-dark-linux.png
new file mode 100644
index 000000000..ff7ba1dd5
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-dark-win32.png
new file mode 100644
index 000000000..d4d51ebb0
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-light-linux.png
new file mode 100644
index 000000000..c2c390fb0
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-light-win32.png
new file mode 100644
index 000000000..86a1a5a54
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/apps-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-dark-linux.png
new file mode 100644
index 000000000..543a1b76e
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-dark-win32.png
new file mode 100644
index 000000000..b2eb3ae48
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-light-linux.png
new file mode 100644
index 000000000..6bc56e65b
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-light-win32.png
new file mode 100644
index 000000000..95d2a9b94
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/assets-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-dark-linux.png
new file mode 100644
index 000000000..c6f6f6fbc
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-dark-win32.png
new file mode 100644
index 000000000..a23923b2f
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-light-linux.png
new file mode 100644
index 000000000..005f79913
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-light-win32.png
new file mode 100644
index 000000000..3f2ea39ff
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-editors-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-dark-linux.png
new file mode 100644
index 000000000..f610c377b
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-dark-win32.png
new file mode 100644
index 000000000..cf356cf88
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-light-linux.png
new file mode 100644
index 000000000..b2c786960
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-light-win32.png
new file mode 100644
index 000000000..43eaba110
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/content-new-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-dark-linux.png
new file mode 100644
index 000000000..8c1e2d9c8
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-dark-win32.png
new file mode 100644
index 000000000..bb3bbb54b
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-light-linux.png
new file mode 100644
index 000000000..9512fc2fb
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-light-win32.png
new file mode 100644
index 000000000..69e67dcb5
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/contents-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-dark-linux.png
new file mode 100644
index 000000000..8d26ffceb
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-dark-win32.png
new file mode 100644
index 000000000..5a707451c
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-light-linux.png
new file mode 100644
index 000000000..2e8005744
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-light-win32.png
new file mode 100644
index 000000000..359bde2c4
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/dashboard-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-dark-linux.png
new file mode 100644
index 000000000..076efc394
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-dark-win32.png
new file mode 100644
index 000000000..59e3017f4
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-light-linux.png
new file mode 100644
index 000000000..6cd359d95
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-light-win32.png
new file mode 100644
index 000000000..598736145
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-login-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-profile-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-profile-visual-dark-linux.png
new file mode 100644
index 000000000..1facaccab
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-profile-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-profile-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-profile-visual-light-linux.png
new file mode 100644
index 000000000..13ca42399
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/identity-profile-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-dark-linux.png
new file mode 100644
index 000000000..fc0bd8f51
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-dark-win32.png
new file mode 100644
index 000000000..8a70ee021
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-light-linux.png
new file mode 100644
index 000000000..c63ab839d
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-light-win32.png
new file mode 100644
index 000000000..816438360
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rule-new-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-dark-linux.png
new file mode 100644
index 000000000..256adba31
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-dark-win32.png
new file mode 100644
index 000000000..93d06317e
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-light-linux.png
new file mode 100644
index 000000000..59298841e
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-light-win32.png
new file mode 100644
index 000000000..f89dcd8aa
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/rules-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-dark-linux.png
new file mode 100644
index 000000000..dbe98d628
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-dark-win32.png
new file mode 100644
index 000000000..274ff5668
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-light-linux.png
new file mode 100644
index 000000000..c63bde6d0
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-light-win32.png
new file mode 100644
index 000000000..66ade068d
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-field-dialog-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-dark-linux.png
new file mode 100644
index 000000000..567e95b27
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-dark-win32.png
new file mode 100644
index 000000000..c5e41aaba
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-light-linux.png
new file mode 100644
index 000000000..5f5db0174
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-light-win32.png
new file mode 100644
index 000000000..d430babec
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schema-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-dark-linux.png
new file mode 100644
index 000000000..53c0b8984
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-dark-win32.png
new file mode 100644
index 000000000..e4f887883
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-light-linux.png
new file mode 100644
index 000000000..36ae806fc
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-light-win32.png
new file mode 100644
index 000000000..65b867b2a
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/schemas-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-dark-linux.png
new file mode 100644
index 000000000..a41dfebb2
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-dark-win32.png
new file mode 100644
index 000000000..a609240d5
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-light-linux.png
new file mode 100644
index 000000000..b7bd8639d
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-light-win32.png
new file mode 100644
index 000000000..043ebd0b9
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-asset-scripts-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-dark-linux.png
new file mode 100644
index 000000000..0b54afaf5
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-dark-win32.png
new file mode 100644
index 000000000..b03fd58b0
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-light-linux.png
new file mode 100644
index 000000000..782230942
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-light-win32.png
new file mode 100644
index 000000000..c43f7e04e
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-backups-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-dark-linux.png
new file mode 100644
index 000000000..78441fbab
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-dark-win32.png
new file mode 100644
index 000000000..cbef20644
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-light-linux.png
new file mode 100644
index 000000000..f5009af0c
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-light-win32.png
new file mode 100644
index 000000000..bc7dfc81b
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-clients-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-dark-linux.png
new file mode 100644
index 000000000..bee4f9495
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-dark-win32.png
new file mode 100644
index 000000000..630096c65
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-light-linux.png
new file mode 100644
index 000000000..292bd470d
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-light-win32.png
new file mode 100644
index 000000000..63b4ec630
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-contributors-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-dark-linux.png
new file mode 100644
index 000000000..0b54afaf5
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-dark-win32.png
new file mode 100644
index 000000000..b03fd58b0
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-light-linux.png
new file mode 100644
index 000000000..782230942
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-light-win32.png
new file mode 100644
index 000000000..40b0ad372
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-jobs-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-dark-linux.png
new file mode 100644
index 000000000..daa6f3210
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-dark-win32.png
new file mode 100644
index 000000000..cb3838761
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-light-linux.png
new file mode 100644
index 000000000..3b4da12e8
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-light-win32.png
new file mode 100644
index 000000000..9d956361b
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-languages-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-dark-linux.png
new file mode 100644
index 000000000..613ccc194
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-dark-win32.png
new file mode 100644
index 000000000..0acaac1ae
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-light-linux.png
new file mode 100644
index 000000000..1d6a38f6f
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-light-win32.png
new file mode 100644
index 000000000..748bd49bf
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-more-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-dark-linux.png
new file mode 100644
index 000000000..702c4b4e7
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-dark-win32.png
new file mode 100644
index 000000000..c5a3b3b37
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-light-linux.png
new file mode 100644
index 000000000..6403d9c48
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-light-win32.png
new file mode 100644
index 000000000..32757d1ea
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-plans-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-dark-linux.png
new file mode 100644
index 000000000..c27827735
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-dark-win32.png
new file mode 100644
index 000000000..546533778
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-light-linux.png
new file mode 100644
index 000000000..30900e910
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-light-win32.png
new file mode 100644
index 000000000..5bde93291
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-roles-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-dark-linux.png
new file mode 100644
index 000000000..41d192229
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-dark-win32.png
new file mode 100644
index 000000000..1f8799430
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-light-linux.png
new file mode 100644
index 000000000..f1a905c06
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-light-win32.png
new file mode 100644
index 000000000..963d1829c
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-script-logs-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-dark-linux.png
new file mode 100644
index 000000000..c45333ded
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-dark-win32.png
new file mode 100644
index 000000000..28608544f
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-light-linux.png
new file mode 100644
index 000000000..319c4125a
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-light-win32.png
new file mode 100644
index 000000000..c46a576e8
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-settings-visual-light-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-dark-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-dark-linux.png
new file mode 100644
index 000000000..c0c689bd6
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-dark-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-dark-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-dark-win32.png
new file mode 100644
index 000000000..512b59c5d
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-dark-win32.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-light-linux.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-light-linux.png
new file mode 100644
index 000000000..5cb7ba5ef
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-light-linux.png differ
diff --git a/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-light-win32.png b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-light-win32.png
new file mode 100644
index 000000000..8a7a4c472
Binary files /dev/null and b/tools/e2e/snapshots/visual/pages.spec.ts-snapshots/settings-workflows-visual-light-win32.png differ
diff --git a/tools/e2e/tests/given-app/plugins.spec.ts b/tools/e2e/tests/given-app/plugins.spec.ts
new file mode 100644
index 000000000..4d62dad91
--- /dev/null
+++ b/tools/e2e/tests/given-app/plugins.spec.ts
@@ -0,0 +1,42 @@
+/*
+ * Squidex Headless CMS
+ *
+ * @license
+ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
+ */
+
+import { getRandomId } from '../utils';
+import { expect, test } from './_fixture';
+
+test('sidebar plugin receives theme', async ({ page, appName, schemasPage, schemaPage, baseURL }) => {
+ const schemaName = `schema-${getRandomId()}`;
+
+ await schemasPage.goto(appName);
+
+ const schemaDialog = await schemasPage.openSchemaDialog();
+ await schemaDialog.enterName(schemaName);
+ await schemaDialog.save();
+
+ await schemaPage.publish();
+
+ await page.getByRole('link', { name: 'More' }).click();
+
+ const form = page.locator('sqx-schema-edit-form form');
+ await form.locator('#contentsSidebarUrl').fill(`${baseURL}/scripts/sidebar-context.html`);
+
+ const saved = page.waitForResponse(x => x.url().includes(`/schemas/${schemaName}`) && x.request().method() === 'PUT');
+ await form.getByRole('button', { name: 'Save' }).click();
+ await saved;
+
+ await page.goto(`/app/${appName}/content/${schemaName}/sidebar`);
+
+ const plugin = page.frameLocator('sqx-content-extension iframe').locator('html');
+
+ await expect(plugin).toHaveAttribute('data-bs-theme', 'light');
+
+ await page.locator('sqx-profile-menu .dropdown-toggle').click();
+ await page.getByRole('button', { name: 'Theme' }).click();
+ await page.getByRole('button', { name: 'Dark', exact: true }).click();
+
+ await expect(plugin).toHaveAttribute('data-bs-theme', 'dark');
+});
diff --git a/tools/e2e/tests/given-app/schemas.spec.ts b/tools/e2e/tests/given-app/schemas.spec.ts
index 9ce2907f5..aaaa9666c 100644
--- a/tools/e2e/tests/given-app/schemas.spec.ts
+++ b/tools/e2e/tests/given-app/schemas.spec.ts
@@ -217,7 +217,7 @@ test('hide field', async ({ schemasPage, schemaPage }) => {
const dropdown = await fieldRow.openOptionsDropdown();
await dropdown.action('Hide in API');
- await expect(fieldRow.root.getByText(fieldName)).toHaveCSS('color', 'rgb(166, 170, 179)');
+ await expect(fieldRow.root.getByText(fieldName)).toHaveClass(/field-hidden/);
});
test('show field', async ({ schemasPage, schemaPage }) => {
@@ -232,7 +232,7 @@ test('show field', async ({ schemasPage, schemaPage }) => {
const dropdown2 = await fieldRow.openOptionsDropdown();
await dropdown2.action('Show in API');
- await expect(fieldRow.root.getByText(fieldName)).not.toHaveCSS('color', 'rgb(166, 170, 179)');
+ await expect(fieldRow.root.getByText(fieldName)).not.toHaveClass(/field-hidden/);
});
test('lock field', async ({ schemasPage, schemaPage }) => {
diff --git a/tools/e2e/tests/given-login/theme.spec.ts b/tools/e2e/tests/given-login/theme.spec.ts
new file mode 100644
index 000000000..aeb2708a0
--- /dev/null
+++ b/tools/e2e/tests/given-login/theme.spec.ts
@@ -0,0 +1,49 @@
+/*
+ * Squidex Headless CMS
+ *
+ * @license
+ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
+ */
+
+import { Page } from '@playwright/test';
+import { expect, test } from './_fixture';
+
+test.beforeEach(async ({ appsPage }) => {
+ await appsPage.goto();
+});
+
+test('switch to dark theme', async ({ page }) => {
+ await selectTheme(page, 'Dark');
+
+ await expect(page.locator('html')).toHaveAttribute('data-bs-theme', 'dark');
+});
+
+test('switch to light theme', async ({ page }) => {
+ await selectTheme(page, 'Light');
+
+ await expect(page.locator('html')).toHaveAttribute('data-bs-theme', 'light');
+});
+
+test('keep theme after reload', async ({ page }) => {
+ await selectTheme(page, 'Dark');
+ await page.reload();
+
+ await expect(page.locator('html')).toHaveAttribute('data-bs-theme', 'dark');
+});
+
+test('use system theme', async ({ page }) => {
+ await page.emulateMedia({ colorScheme: 'dark' });
+ await selectTheme(page, 'System');
+
+ await expect(page.locator('html')).toHaveAttribute('data-bs-theme', 'dark');
+
+ await page.emulateMedia({ colorScheme: 'light' });
+
+ await expect(page.locator('html')).toHaveAttribute('data-bs-theme', 'light');
+});
+
+async function selectTheme(page: Page, theme: string) {
+ await page.locator('sqx-profile-menu .dropdown-toggle').click();
+ await page.getByRole('button', { name: 'Theme' }).click();
+ await page.getByRole('button', { name: theme, exact: true }).click();
+}
diff --git a/tools/e2e/tests/pages/apps.ts b/tools/e2e/tests/pages/apps.ts
index 1e7586fc4..b90dcf0da 100644
--- a/tools/e2e/tests/pages/apps.ts
+++ b/tools/e2e/tests/pages/apps.ts
@@ -12,6 +12,14 @@ export class AppsPage {
public async goto() {
await this.page.goto('/app');
+ await this.page.waitForLoadState('networkidle');
+
+ // The onboarding dialog is only shown when the user has no apps yet.
+ const onboardingSkip = this.page.locator('sqx-onboarding-dialog').getByRole('button', { name: /Skip/ });
+
+ if (await onboardingSkip.waitFor({ timeout: 2000 }).then(() => true, () => false)) {
+ await onboardingSkip.click();
+ }
}
public async gotoApp(name: string) {
diff --git a/tools/e2e/tests/visual/_editors.ts b/tools/e2e/tests/visual/_editors.ts
new file mode 100644
index 000000000..2c1c71fc6
--- /dev/null
+++ b/tools/e2e/tests/visual/_editors.ts
@@ -0,0 +1,63 @@
+/*
+ * Squidex Headless CMS
+ *
+ * @license
+ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
+ */
+
+const ALLOWED_TEXTS = ['Option 1', 'Option 2'];
+const ALLOWED_NUMBERS = [1, 2];
+
+function field(name: string, fieldType: string, editor?: string, properties?: object) {
+ return {
+ name,
+ partitioning: 'invariant',
+ properties: { fieldType, editor, label: editor ? `${fieldType} (${editor})` : fieldType, ...properties },
+ };
+}
+
+// A schema with a field for every editor, to verify the styling of all of them.
+export const EDITORS_SCHEMA = {
+ isPublished: true,
+ type: 'Default',
+ fields: [
+ field('string-input', 'String', 'Input'),
+ field('string-color', 'String', 'Color'),
+ field('string-dropdown', 'String', 'Dropdown', { allowedValues: ALLOWED_TEXTS }),
+ field('string-html', 'String', 'Html'),
+ field('string-markdown', 'String', 'Markdown'),
+ field('string-radio', 'String', 'Radio', { allowedValues: ALLOWED_TEXTS }),
+ field('string-rich-text', 'String', 'RichText'),
+ field('string-slug', 'String', 'Slug'),
+ field('string-stock-photo', 'String', 'StockPhoto'),
+ field('string-text-area', 'String', 'TextArea'),
+ field('number-input', 'Number', 'Input'),
+ field('number-dropdown', 'Number', 'Dropdown', { allowedValues: ALLOWED_NUMBERS }),
+ field('number-radio', 'Number', 'Radio', { allowedValues: ALLOWED_NUMBERS }),
+ field('number-stars', 'Number', 'Stars'),
+ field('boolean-checkbox', 'Boolean', 'Checkbox'),
+ field('boolean-toggle', 'Boolean', 'Toggle'),
+ field('date-time-date', 'DateTime', 'Date'),
+ field('date-time-date-time', 'DateTime', 'DateTime'),
+ field('references-list', 'References', 'List'),
+ field('references-dropdown', 'References', 'Dropdown'),
+ field('references-tags', 'References', 'Tags'),
+ field('references-checkboxes', 'References', 'Checkboxes'),
+ field('tags-tags', 'Tags', 'Tags'),
+ field('tags-checkboxes', 'Tags', 'Checkboxes', { allowedValues: ALLOWED_TEXTS }),
+ field('tags-dropdown', 'Tags', 'Dropdown', { allowedValues: ALLOWED_TEXTS }),
+ field('assets', 'Assets'),
+ field('geolocation', 'Geolocation'),
+ field('json', 'Json'),
+ field('rich-text', 'RichText'),
+ field('user-info', 'UserInfo'),
+ field('ui', 'UI'),
+ {
+ ...field('array', 'Array'),
+ nested: [
+ field('nested-string', 'String', 'Input'),
+ field('nested-number', 'Number', 'Input'),
+ ],
+ },
+ ],
+};
diff --git a/tools/e2e/tests/visual/_fixture.ts b/tools/e2e/tests/visual/_fixture.ts
new file mode 100644
index 000000000..c440fd85b
--- /dev/null
+++ b/tools/e2e/tests/visual/_fixture.ts
@@ -0,0 +1,29 @@
+/*
+ * Squidex Headless CMS
+ *
+ * @license
+ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
+ */
+
+import { readJsonAsync } from '../utils';
+import { test as base } from './../given-login/_fixture';
+export { expect } from '@playwright/test';
+
+type VisualFixture = {
+ appName: string;
+ schemaName: string;
+};
+
+export const test = base.extend<{}, VisualFixture>({
+ appName: [async ({}, use) => {
+ const config = await readJsonAsync('visual', null!);
+
+ await use(config.appName);
+ }, { scope: 'worker' }],
+
+ schemaName: [async ({}, use) => {
+ const config = await readJsonAsync('visual', null!);
+
+ await use(config.schemaName);
+ }, { scope: 'worker' }],
+});
diff --git a/tools/e2e/tests/visual/_setup.ts b/tools/e2e/tests/visual/_setup.ts
new file mode 100644
index 000000000..fa721f165
--- /dev/null
+++ b/tools/e2e/tests/visual/_setup.ts
@@ -0,0 +1,115 @@
+/*
+ * Squidex Headless CMS
+ *
+ * @license
+ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
+ */
+
+import { readFile } from 'fs/promises';
+import path from 'path';
+import { test as setup } from '../given-login/_fixture';
+import { writeJsonAsync } from '../utils';
+import { EDITORS_SCHEMA } from './_editors';
+
+setup('prepare visual app', async ({ page, appsPage, assetsPage, contentsPage, contentPage, rulesPage, rulePage, schemasPage, schemaPage }) => {
+ setup.setTimeout(120_000);
+
+ // Use a dedicated app with a fixed name, so that other tests cannot change the screenshots.
+ const appName = 'visual-tests';
+ const schemaName = 'visual-schema';
+ const editorsSchemaName = 'visual-editors';
+
+ await writeJsonAsync('visual', { appName, schemaName, editorsSchemaName });
+
+ await appsPage.goto();
+
+ // Everything is only created once per database, because the names cannot be reused.
+ const hasApp = await page.getByRole('heading', { name: appName, exact: true }).isVisible();
+
+ if (!hasApp) {
+ await appsPage.createNewApp(appName);
+ }
+
+ await schemasPage.goto(appName);
+
+ if (!await hasSchema(schemaName)) {
+ const schemaDialog = await schemasPage.openSchemaDialog();
+ await schemaDialog.enterName(schemaName);
+ await schemaDialog.save();
+
+ await schemaPage.publish();
+
+ for (const [name, type] of [['title', 'String'], ['count', 'Number'], ['active', 'Boolean'], ['text', 'RichText']]) {
+ const fieldDialog = await schemaPage.openFieldWizard();
+ await fieldDialog.enterName(name);
+ await fieldDialog.enterType(type);
+ await fieldDialog.createAndClose();
+
+ // Wait for the field, otherwise the request is cancelled when navigating away.
+ const fieldRow = await schemaPage.getFieldRow(name);
+ await fieldRow.root.waitFor({ state: 'visible' });
+ }
+
+ await schemasPage.goto(appName);
+ }
+
+ if (!await hasSchema(editorsSchemaName)) {
+ const editorsDialog = await schemasPage.openSchemaDialog();
+ await editorsDialog.enterName(editorsSchemaName);
+ await editorsDialog.save();
+ }
+
+ // The schema defines a field for every editor, which is faster and more stable than the field wizard.
+ await page.goto(`/app/${appName}/schemas/${editorsSchemaName}?tab=json`);
+ await page.locator('.ace_editor').waitFor({ state: 'visible' });
+ await page.locator('.ace_editor').evaluate((element, json) => {
+ (window as any).ace.edit(element).setValue(json, -1);
+ }, JSON.stringify(EDITORS_SCHEMA, undefined, 2));
+
+ // The editor notifies the form with a delay.
+ await page.waitForTimeout(1000);
+
+ const synchronized = page.waitForResponse(x => x.url().includes(`/schemas/${editorsSchemaName}/sync`) && x.request().method() === 'PUT');
+ await page.getByRole('button', { name: 'Synchronize' }).click();
+ await synchronized;
+
+ if (hasApp) {
+ return;
+ }
+
+ await contentsPage.goto(appName, schemaName);
+ await contentsPage.addContent();
+
+ await page.locator('sqx-field-editor').first().getByRole('textbox').fill('Hello Squidex');
+ await contentPage.savePublishAndClose();
+
+ await assetsPage.goto(appName);
+ await assetsPage.uploadFile({
+ name: 'logo.png',
+ mimeType: 'image/png',
+ buffer: await readFile(path.join(__dirname, '../../assets/logo-squared.png')),
+ });
+
+ await assetsPage.getAssetCard('logo.png').then(x => x.root.waitFor({ state: 'visible' }));
+
+ await rulesPage.goto(appName);
+ await rulesPage.addRule();
+
+ const triggerDialog = await rulePage.addTrigger();
+ await triggerDialog.selectContentChangedTrigger();
+ await triggerDialog.add();
+
+ const stepDialog = await rulePage.addStep();
+ await stepDialog.selectWebhookAction();
+ await stepDialog.add();
+
+ await rulePage.enterName('visual-rule');
+ await rulePage.save();
+
+ // The schemas are loaded asynchronously, therefore we have to wait for them.
+ async function hasSchema(name: string) {
+ const link = await schemasPage.getSchemaLink(name);
+
+ return await link.root.waitFor({ timeout: 5000 }).then(() => true, () => false);
+ }
+});
diff --git a/tools/e2e/tests/visual/pages.spec.ts b/tools/e2e/tests/visual/pages.spec.ts
new file mode 100644
index 000000000..3ab8e30de
--- /dev/null
+++ b/tools/e2e/tests/visual/pages.spec.ts
@@ -0,0 +1,227 @@
+/*
+ * Squidex Headless CMS
+ *
+ * @license
+ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
+ */
+
+import { Locator, Page } from '@playwright/test';
+import { expect, test } from './_fixture';
+
+type VisualPage = {
+ name: string;
+ url: string;
+ intercept?: (page: Page, appName: string) => Promise;
+ prepare?: (page: Page) => Promise;
+ mask?: (page: Page) => Locator[];
+
+ // The selector of an inner container that scrolls, because a full page screenshot does not include it.
+ scroll?: string;
+
+ // False, if the page renders more content when it is scrolled and would never be stable.
+ fullPage?: boolean;
+};
+
+const pages: VisualPage[] = [
+ {
+ name: 'apps',
+ url: '/app',
+ intercept: async (page, appName) => {
+ // Other tests create apps, therefore only show the visual app.
+ await page.route('**/api/apps', async route => {
+ const response = await route.fetch();
+ const apps = await response.json();
+
+ await route.fulfill({ response, json: apps.filter((x: any) => x.name === appName) });
+ });
+ },
+ },
+ {
+ name: 'dashboard',
+ url: '',
+ mask: page => [page.locator('sqx-dashboard-page canvas, sqx-dashboard-page .event-created')],
+ },
+ {
+ name: 'schemas',
+ url: 'schemas',
+ },
+ {
+ name: 'schema',
+ url: 'schemas/visual-schema',
+ },
+ {
+ name: 'schema-field-dialog',
+ url: 'schemas/visual-schema',
+ prepare: async page => {
+ await page.getByRole('button', { name: /Add Field/ }).first().click();
+ await page.getByTestId('dialog').waitFor();
+ },
+ },
+ {
+ name: 'contents',
+ url: 'content/visual-schema',
+ mask: page => [page.locator('sqx-content-list-field small')],
+ },
+ {
+ name: 'content-new',
+ url: 'content/visual-schema/new',
+ },
+ {
+ name: 'content-editors',
+ url: 'content/visual-editors/new',
+ scroll: '.list-content',
+ mask: page => [page.locator('sqx-geolocation-editor')],
+ },
+ {
+ name: 'assets',
+ url: 'assets',
+ },
+ {
+ name: 'rules',
+ url: 'rules',
+ },
+ {
+ name: 'rule-new',
+ url: 'rules/new',
+ },
+ {
+ name: 'api',
+ url: 'api',
+ },
+ {
+ name: 'api-graphql',
+ url: 'api/graphql',
+ prepare: async page => {
+ await page.locator('.graphiql-container').waitFor();
+ },
+ },
+ {
+ name: 'settings-more',
+ url: 'settings/more',
+ },
+ {
+ name: 'settings-clients',
+ url: 'settings/clients',
+ mask: page => [page.locator('sqx-client input')],
+ },
+ {
+ name: 'settings-contributors',
+ url: 'settings/contributors',
+ },
+ {
+ name: 'settings-languages',
+ url: 'settings/languages',
+ },
+ {
+ name: 'settings-roles',
+ url: 'settings/roles',
+ },
+ {
+ name: 'settings-workflows',
+ url: 'settings/workflows',
+ },
+ {
+ name: 'settings-settings',
+ url: 'settings/settings',
+ },
+ {
+ name: 'settings-plans',
+ url: 'settings/plans',
+ },
+ {
+ name: 'settings-backups',
+ url: 'settings/backups',
+ },
+ {
+ name: 'settings-jobs',
+ url: 'settings/jobs',
+ },
+ {
+ name: 'settings-asset-scripts',
+ url: 'settings/asset-scripts',
+ },
+ {
+ name: 'settings-script-logs',
+ url: 'settings/script-logs',
+ },
+ {
+ name: 'administration-users',
+ url: '/app/administration/users',
+ intercept: async page => {
+ // Other tests create users with random names, therefore only show the admin user.
+ await page.route(/\/api\/user-management(\?.*)?$/, async route => {
+ const response = await route.fetch();
+ const users = await response.json();
+
+ const items = users.items.filter((x: any) => x.email === 'hello@squidex.io');
+
+ await route.fulfill({ response, json: { ...users, items, total: items.length } });
+ });
+ },
+ },
+ {
+ name: 'administration-event-consumers',
+ url: '/app/administration/event-consumers',
+ mask: page => [page.locator('sqx-event-consumers-page tbody')],
+ },
+ {
+ name: 'administration-restore',
+ url: '/app/administration/restore',
+ },
+ {
+ name: 'identity-login',
+ url: '/identity-server/account/login',
+ },
+ {
+ name: 'identity-profile',
+ url: '/identity-server/account/profile',
+ },
+ {
+ name: 'api-docs',
+ url: '/api/docs',
+ fullPage: false,
+ prepare: async page => {
+ await page.locator('#redoc-container h1').first().waitFor();
+ },
+ },
+];
+
+for (const { name, url, intercept, prepare, mask, scroll, fullPage } of pages) {
+ test(name, async ({ page, appName }) => {
+ if (intercept) {
+ await intercept(page, appName);
+ }
+
+ // Absolute URLs are not scoped to the app.
+ await page.goto(url.startsWith('/') ? url : `/app/${appName}/${url}`);
+ await page.waitForLoadState('networkidle');
+
+ if (prepare) {
+ await prepare(page);
+ }
+
+ if (scroll) {
+ await resizeToContent(page, scroll);
+ }
+
+ await expect(page).toHaveScreenshot(`${name}.png`, {
+ animations: 'disabled',
+ caret: 'hide',
+ fullPage: fullPage !== false,
+ mask: mask?.(page),
+ maxDiffPixelRatio: 0.01,
+ });
+ });
+}
+
+// Screenshots do not include the content of inner scroll containers, therefore the window is resized to fit.
+async function resizeToContent(page: Page, selector: string) {
+ const viewport = page.viewportSize()!;
+
+ const hiddenHeight = await page.locator(selector).evaluate(element => element.scrollHeight - element.clientHeight);
+
+ if (hiddenHeight > 0) {
+ await page.setViewportSize({ width: viewport.width, height: Math.min(viewport.height + hiddenHeight, 8000) });
+ await page.waitForLoadState('networkidle');
+ }
+}