Prepare Frost 1.0.0 release candidate
CI / Test and package (push) Successful in 1m29s
Release and RC / Verify and publish (push) Failing after 6m12s

This commit is contained in:
2026-11-21 14:48:53 +01:00
parent ebfd15796f
commit 50fe5ec2e9
66 changed files with 577 additions and 22 deletions
+32 -2
View File
@@ -37,7 +37,8 @@ const visualCases = [
];
for (const visualCase of visualCases) {
test(`${visualCase.name} matches its component baselines`, async ({ page }) => {
test(`${visualCase.name} matches its component baselines`, async ({ page, browserName }) => {
test.skip(browserName !== "chromium", "Pixel baselines are intentionally pinned to Chromium; other engines run behavioral and accessibility coverage.");
await page.addStyleTag({ content: ".frost-skip-link { display: none !important; }" });
for (const theme of ["light", "dark"]) {
await page.locator("html").evaluate((element, selectedTheme) => {
@@ -49,7 +50,8 @@ for (const visualCase of visualCases) {
}
});
test(`${visualCase.name} matches its forced-colors baseline`, async ({ page }) => {
test(`${visualCase.name} matches its forced-colors baseline`, async ({ page, browserName }) => {
test.skip(browserName !== "chromium", "Forced-colors pixel baselines are intentionally pinned to Chromium.");
await page.emulateMedia({ colorScheme: "light", forcedColors: "active" });
await page.addStyleTag({ content: ".frost-skip-link { display: none !important; }" });
await visualCase.prepare?.(page);
@@ -150,6 +152,8 @@ test("modal restores focus to its trigger after closing", async ({ page }) => {
test("forced colors preserves system mappings and non-color state cues", async ({ page }) => {
await page.emulateMedia({ colorScheme: "light", forcedColors: "active" });
const supportsForcedColors = await page.evaluate(() => matchMedia("(forced-colors: active)").matches && CSS.supports("forced-color-adjust: none"));
test.skip(!supportsForcedColors, "This browser engine does not expose forced-color-adjust with forced-colors emulation.");
const primary = page.locator("#buttons .frost-button--primary").first();
const disabled = page.locator("#buttons .frost-button:disabled");
@@ -196,6 +200,9 @@ test("forced colors preserves system mappings and non-color state cues", async (
test("increased contrast strengthens component boundaries and states", async ({ page }) => {
await page.emulateMedia({ colorScheme: "light", contrast: "more", forcedColors: "none" });
const supportsIncreasedContrast = await page.evaluate(() => matchMedia("(prefers-contrast: more)").matches
&& Number.parseFloat(getComputedStyle(document.querySelector("#buttons .frost-button--primary")).borderWidth) >= 2);
test.skip(!supportsIncreasedContrast, "This browser engine does not expose prefers-contrast emulation.");
const states = await page.evaluate(() => {
const style = (selector) => getComputedStyle(document.querySelector(selector));
@@ -220,3 +227,26 @@ test("increased contrast strengthens component boundaries and states", async ({
expect(states.selectedBorderWidth).toBeGreaterThanOrEqual(3);
});
test("renders the framework smoke fixture", async ({ page, browserName }) => {
const rendering = await page.evaluate(() => {
const button = getComputedStyle(document.querySelector("#buttons .frost-button--primary"));
const card = getComputedStyle(document.querySelector("#surfaces .frost-card"));
const dialog = getComputedStyle(document.querySelector("#example-dialog"));
return {
buttonDisplay: button.display,
buttonMinHeight: Number.parseFloat(button.minHeight),
cardDisplay: card.display,
cardBorderStyle: card.borderStyle,
closedDialogDisplay: dialog.display,
};
});
expect(rendering, `${browserName} framework rendering`).toEqual({
buttonDisplay: "flex",
buttonMinHeight: 40,
cardDisplay: "block",
cardBorderStyle: "solid",
closedDialogDisplay: "none",
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB