GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: Custom themes drop text with escaped quotation marks · Issue #39293 · pingdotgg/t3code Closed Labels vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list. DescriptionBefore submitting
Areapackages/contracts or packages/shared Steps to reproduce
Expected behaviorThe appearance page displays the custom text Actual behaviorThe theme installs, but the custom text is missing from the page. ImpactMajor degradation or frequent failure. Anyone applying a custom theme that uses an escaped quotation mark in a CSS content string loses that text. Version or commit
EnvironmentLinux x64 boat.dev default machine, a fresh checkout. Logs or stack tracesThe selected theme displays its custom text with quotation marks Automated reproFails in 2 of 2 runs on diff --git a/scripts/scenarios/theme-renders-escaped-quotation-marks.e2e.ts b/scripts/scenarios/theme-renders-escaped-quotation-marks.e2e.ts new file mode 100644 index 0000000000..8e26cf6a63 --- /dev/null +++ b/scripts/scenarios/theme-renders-escaped-quotation-marks.e2e.ts @@ -0,0 +1,44 @@ +/// <reference lib="dom" /> +import { expect } from "e2e"; + +import { test, WEB } from "./t3.ts"; + +const CONTENT = String.raw`"Theme preview: \"ready\""`; + +test( + "A theme renders custom text containing quotation marks", + WEB, + async ({ t3, app, screen, browser }) => { + await t3.project("demo"); + await t3.open("/settings/appearance"); + await screen.getByRole("button", "Add theme", { exact: true }).tap(); + const dialog = screen.getByRole("dialog", "Add a theme"); + await dialog.getByRole("textbox", "Theme JSON").fill( + JSON.stringify({ + version: 1, + name: "Quoted Preview", + appearance: "light", + colors: { canvas: "#ffffff", accent: "#734ee4" }, + css: `[data-settings-page-scroll]::before { display: block; content: ${CONTENT}; }`, + }), + ); + await dialog.getByRole("button", "Add theme", { exact: true }).tap(); + await dialog.waitFor({ state: "hidden" }); + await screen.getByRole("button", "Use Quoted Preview theme", { exact: true }).tap(); + + try { + await expect + .poll( + () => + browser.evaluate(() => { + const settings = document.querySelector("[data-settings-page-scroll]"); + return settings ? getComputedStyle(settings, "::before").content : ""; + }), + { message: "The selected theme displays its custom text with quotation marks" }, + ) + .toBe(CONTENT); + } finally { + await app.screenshot("theme-custom-text"); + } + }, +); pnpm scenarios:prove scripts/scenarios/theme-renders-escaped-quotation-marks.e2e.ts --base main WorkaroundNo response Activity
MetadataMetadataAssigneesLabelsvouch:trustedAuthor is trusted by repo permissions or the VOUCHED list. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |