fix(webui): reorder appearance settings and trim preview
This commit is contained in:
1 parent
0ce10533d3
commit
c3403e6a6f
14 files changed
+31
-27
No files matched your search
@@ -4,6 +4,13 @@ test.beforeEach(async ({ page }) => {
|
||||
await page.route("**/api/**", (route) => route.abort());
|
||||
});
|
||||
|
||||
test("appearance puts interface settings before activity display", async ({ page }) => {
|
||||
await page.goto("/browser/fixture.html?case=appearance");
|
||||
await expect(page.locator(".appearance-page > section > h2")).toHaveText([
|
||||
"Theme", "Reading", "Interface", "Activity display",
|
||||
]);
|
||||
});
|
||||
|
||||
test("system theme stays live, explicit choices persist, and tabs agree", async ({ page, context }) => {
|
||||
await page.emulateMedia({ colorScheme: "light" });
|
||||
await page.goto("/browser/fixture.html?case=appearance");
|
||||
|
||||
@@ -103,7 +103,7 @@ for (const width of [390, 1440]) for (const locale of ["en", "zh-CN"]) {
|
||||
await page.goto(fixture("settings", "loaded", "§ion=appearance"));
|
||||
const target = page.locator('[data-settings-section="appearance"]');
|
||||
const ready = async () => {
|
||||
await expect(target.locator("[data-reading-preview-content] strong")).toBeVisible();
|
||||
await expect(target.locator("[data-reading-preview-content] .markdown-content p").first()).toBeVisible();
|
||||
await expect(target.locator("[data-reading-preview-content] .markdown-content p").first()).toHaveCSS("font-size", "24px");
|
||||
await settle(page);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user