Compare commits

...
Author SHA1 Message Date
arookieofc 4c15fe5a23 test(e2e): take the first 'Plain PHP documentation' token (#2994)
The locator resolves to two leaf spans — the comment tokenizes as
multiple spans — so the strict-mode expect flakes. Every other
multi-match token in the spec already uses .first().
2026-11-13 03:33:18 +08:00
arookieofc 8f6a4b5b39 style: format the plugin settings test (#2980 merged with a format slip) (#2992)
oxfmt --check fails on main, failing the Frontend job for every PR.
2026-11-13 02:30:22 +08:00
2 changed files with 4 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ test("imported PHP colours stay separate from Java and preserve regular text on
await expect(token("'Palette'")).toHaveCSS("color", "rgb(255, 231, 146)");
await expect(token("'Palette'")).toHaveCSS("font-weight", "400");
await expect(token("class").first()).toHaveCSS("color", "rgb(249, 38, 114)");
await expect(token("Plain PHP documentation")).toHaveCSS("font-style", "normal");
await expect(token("Plain PHP documentation").first()).toHaveCSS("font-style", "normal");
await expect(token("BasePalette")).toHaveCSS("color", "rgb(174, 129, 255)");
await expect(token(";").first()).toHaveCSS("color", "rgb(255, 255, 255)");
await expect(token("example")).toHaveCSS("color", "rgb(141, 225, 45)");
@@ -179,7 +179,9 @@ it("lists the plugin's declared secrets on its settings page", async () => {
list: async () => ({
plugins: [{ id: "example.helper" } as never],
activeTheme: null,
ui: [{ pluginId: "example.helper", point: "secrets", key: "api-key", decl: { name: "api-key", label: "API key" } }],
ui: [
{ pluginId: "example.helper", point: "secrets", key: "api-key", decl: { name: "api-key", label: "API key" } },
],
}),
});
const { refreshPlugins } = await import("../store");