Skip to content

Commit adb8d55

Browse files
committed
test: mark imported theme metadata
1 parent 3598938 commit adb8d55

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ui/src/ui/views/config.browser.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,12 @@ describe("config view", () => {
10271027

10281028
expect(onImportCustomTheme).toHaveBeenCalledTimes(1);
10291029
expect(onClearCustomTheme).toHaveBeenCalledTimes(1);
1030-
expect(normalizedText(container)).toContain("Loaded Light Green");
1030+
expect(container.querySelector(".settings-theme-import__meta-label")?.textContent?.trim()).toBe(
1031+
"Loaded",
1032+
);
1033+
expect(container.querySelector(".settings-theme-import__meta-value")?.textContent?.trim()).toBe(
1034+
"Light Green \u00b7 https://tweakcn.com/themes/cmlhfpjhw000004l4f4ax3m7z",
1035+
);
10311036

10321037
const input = container.querySelector(".settings-theme-import__input") as HTMLInputElement;
10331038
input.value = "/r/themes/cmlhfpjhw000004l4f4ax3m7z";

0 commit comments

Comments
 (0)