feat: add semantic CSS stylesheets (#3274)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
Amruth Pillai
2026-07-30 12:39:15 +02:00
committed by GitHub
co-authored by Cursor Agent
parent 4ac19f81b3
commit d2ffbf9618
320 changed files with 78393 additions and 2915 deletions
@@ -0,0 +1,26 @@
import { updateSemanticCssFixture } from "../../fixtures/db";
import {
createSemanticCssResume,
readStylesheetSource,
replaceStylesheet,
seedSemanticCssResume,
waitForStylesheetStatus,
} from "../../fixtures/semantic-css";
import { expect, test } from "../../fixtures/test";
test.setTimeout(120_000);
test("@semantic-css rebases a stale revision without dropping the focused draft", async ({
authPage: page,
}, testInfo) => {
const resumeId = await createSemanticCssResume(page, testInfo);
await seedSemanticCssResume(page, resumeId);
await replaceStylesheet(page, "@version 1;\nname { color: #dc2626; }\n");
await waitForStylesheetStatus(page, "Applied");
await updateSemanticCssFixture(resumeId, { bumpRevision: true });
const latest = "@version 1;\nname { color: #2563eb; }\n";
await replaceStylesheet(page, latest);
await waitForStylesheetStatus(page, "Applied");
await expect.poll(() => readStylesheetSource(page)).toBe(latest);
});