diff --git a/react-checkout/e2e/checks.ts b/react-checkout/e2e/checks.ts index 3d9e352..a7a50ed 100644 --- a/react-checkout/e2e/checks.ts +++ b/react-checkout/e2e/checks.ts @@ -26,9 +26,10 @@ export async function expectNoSidewaysScroll(page: Page, message?: string) { /** * Fails when the status line cuts what it holds. The mode, the keys switch and the name of the - * theme are whole and inside it, and its path shows whole or not at all: when it shows, "~…" fits - * in its text box, and the text has as much room before the keys switch as after the mode. It is - * gone only when "~…" and its padding have no room there. Says whether the path showed. + * theme are whole and inside it, and its path shows whole or not at all: when it shows, five + * characters and an ellipsis fit in its text box, and the text has as much room before the keys + * switch as after the mode. It is gone only when those and its padding have no room there. Says + * whether the path showed. */ export async function expectStatusLineWhole(page: Page, message?: string) { const line = await page.locator('.ws-status-line').evaluate((line) => { @@ -63,7 +64,7 @@ export async function expectStatusLineWhole(page: Page, message?: string) { const probe = document.createElement('span') probe.style.position = 'absolute' probe.style.font = textStyle.font - probe.textContent = '~…' + probe.textContent = 'xxxxx…' document.body.append(probe) const shortest = probe.getBoundingClientRect().width probe.remove() @@ -96,17 +97,19 @@ export async function expectStatusLineWhole(page: Page, message?: string) { `the status line cuts its end${at}`, ).toBeLessThanOrEqual(0) if (line.shown) { - expect(line.text, `the path shows a cut glyph${at}`).toBeGreaterThanOrEqual( - line.shortest, - ) + expect( + line.text, + `the path shows less than five characters${at}`, + ).toBeGreaterThanOrEqual(line.shortest) expect( line.after, `the path runs into the keys switch${at}`, ).toBeGreaterThanOrEqual(line.before) } else { - expect(line.room, `the path is gone with room for "~…"${at}`).toBeLessThan( - line.needed, - ) + expect( + line.room, + `the path is gone with room for five characters${at}`, + ).toBeLessThan(line.needed) } return line.shown } diff --git a/react-checkout/package.json b/react-checkout/package.json index 8355187..b9ef74c 100644 --- a/react-checkout/package.json +++ b/react-checkout/package.json @@ -17,7 +17,7 @@ "@formisch/react": "^1.2.0", "@hono/node-server": "^2.1.7", "@valibot/i18n": "^1.3.0", - "@whatsaaaa/design-system": "^0.8.0", + "@whatsaaaa/design-system": "^0.8.1", "@whatsaaaa/form-builder-affects": "0.2.2-rc.0", "@whatsaaaa/form-builder-react": "1.0.0-rc.0", "@whatsaaaa/form-builder-schema": "1.0.0-rc.0", diff --git a/react-checkout/pnpm-lock.yaml b/react-checkout/pnpm-lock.yaml index 735baee..f54d1be 100644 --- a/react-checkout/pnpm-lock.yaml +++ b/react-checkout/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: ^1.3.0 version: 1.3.0(valibot@1.5.0(typescript@7.0.2)) '@whatsaaaa/design-system': - specifier: ^0.8.0 - version: 0.8.0 + specifier: ^0.8.1 + version: 0.8.1 '@whatsaaaa/form-builder-affects': specifier: 0.2.2-rc.0 version: 0.2.2-rc.0(@whatsaaaa/form-builder-schema@1.0.0-rc.0(valibot@1.5.0(typescript@7.0.2)))(valibot@1.5.0(typescript@7.0.2)) @@ -741,8 +741,8 @@ packages: '@vitest/spy@5.1.0': resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==} - '@whatsaaaa/design-system@0.8.0': - resolution: {integrity: sha512-d2D1z83IraVF0fkYgVgeimad30SS064NChanaLUDnBinZwL20SSS8v0Z8w5sLabEHjzqmwiO6P01qyucmhWgfg==} + '@whatsaaaa/design-system@0.8.1': + resolution: {integrity: sha512-ZILLcKGA7ZBUvinoLKJoI1z/Z7oDhJMpT3dBEZ1UuQKCcobQF8xdU7crG0wNGbkAnnIA+ll3nIOi1CiMrhRGTA==} engines: {node: ^22.18.0 || >=24.12.0} peerDependencies: tailwindcss: ^4.3.5 @@ -1678,7 +1678,7 @@ snapshots: '@vitest/spy@5.1.0': {} - '@whatsaaaa/design-system@0.8.0': + '@whatsaaaa/design-system@0.8.1': dependencies: '@terrazzo/token-types': 2.10.0 diff --git a/react-checkout/pnpm-workspace.yaml b/react-checkout/pnpm-workspace.yaml index 78487b0..0c6ddd3 100644 --- a/react-checkout/pnpm-workspace.yaml +++ b/react-checkout/pnpm-workspace.yaml @@ -4,4 +4,4 @@ minimumReleaseAgeExclude: - '@whatsaaaa/form-builder-schema@1.0.0-rc.0' - '@whatsaaaa/form-builder-react@1.0.0-rc.0' - '@whatsaaaa/form-builder-affects@0.2.2-rc.0' - - '@whatsaaaa/design-system@0.8.0' + - '@whatsaaaa/design-system@0.8.1' diff --git a/vue-event-registration/e2e/frame.spec.ts b/vue-event-registration/e2e/frame.spec.ts index d7ddd48..af0b111 100644 --- a/vue-event-registration/e2e/frame.spec.ts +++ b/vue-event-registration/e2e/frame.spec.ts @@ -14,8 +14,9 @@ function keysSwitch(page: Page) { /** * Fails when the status line cuts what it holds. It fits in the line, and its path shows whole or - * not at all: when it shows, "~…" fits in its text box, and the text has as much room before the - * keys switch as after the mode. It is gone only when "~…" and its padding have no room there. + * not at all: when it shows, five characters and an ellipsis fit in its text box, and the text has + * as much room before the keys switch as after the mode. It is gone only when those and its + * padding have no room there. */ async function expectStatusLineWhole(page: Page) { const line = await page.locator('.ws-status-line').evaluate((line) => { @@ -31,7 +32,7 @@ async function expectStatusLineWhole(page: Page) { const probe = document.createElement('span') probe.style.position = 'absolute' probe.style.font = textStyle.font - probe.textContent = '~…' + probe.textContent = 'xxxxx…' document.body.append(probe) const shortest = probe.getBoundingClientRect().width probe.remove() @@ -58,17 +59,19 @@ async function expectStatusLineWhole(page: Page) { }) expect(line.overflow, 'the status line cuts its end').toBeLessThanOrEqual(0) if (line.shown) { - expect(line.text, 'the path shows a cut glyph').toBeGreaterThanOrEqual( - line.shortest, - ) + expect( + line.text, + 'the path shows less than five characters', + ).toBeGreaterThanOrEqual(line.shortest) expect( line.after, 'the path runs into the keys switch', ).toBeGreaterThanOrEqual(line.before) } else { - expect(line.room, 'the path is gone with room for "~…"').toBeLessThan( - line.needed, - ) + expect( + line.room, + 'the path is gone with room for five characters', + ).toBeLessThan(line.needed) } return line.shown } diff --git a/vue-event-registration/package.json b/vue-event-registration/package.json index 950be2e..ee80f74 100644 --- a/vue-event-registration/package.json +++ b/vue-event-registration/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@formisch/vue": "^1.2.0", - "@whatsaaaa/design-system": "^0.8.0", + "@whatsaaaa/design-system": "^0.8.1", "@whatsaaaa/form-builder-affects": "0.2.2-rc.0", "@whatsaaaa/form-builder-schema": "1.0.0-rc.0", "@whatsaaaa/form-builder-vue": "1.0.0-rc.0", diff --git a/vue-event-registration/pnpm-lock.yaml b/vue-event-registration/pnpm-lock.yaml index 419e9b2..4cd7123 100644 --- a/vue-event-registration/pnpm-lock.yaml +++ b/vue-event-registration/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^1.2.0 version: 1.2.0(typescript@6.0.3)(valibot@1.5.0(typescript@6.0.3))(vue@3.5.45(typescript@6.0.3)) '@whatsaaaa/design-system': - specifier: ^0.8.0 - version: 0.8.0(vue@3.5.45(typescript@6.0.3)) + specifier: ^0.8.1 + version: 0.8.1(vue@3.5.45(typescript@6.0.3)) '@whatsaaaa/form-builder-affects': specifier: 0.2.2-rc.0 version: 0.2.2-rc.0(@whatsaaaa/form-builder-schema@1.0.0-rc.0(valibot@1.5.0(typescript@6.0.3)))(valibot@1.5.0(typescript@6.0.3)) @@ -530,8 +530,8 @@ packages: vue: optional: true - '@whatsaaaa/design-system@0.8.0': - resolution: {integrity: sha512-d2D1z83IraVF0fkYgVgeimad30SS064NChanaLUDnBinZwL20SSS8v0Z8w5sLabEHjzqmwiO6P01qyucmhWgfg==} + '@whatsaaaa/design-system@0.8.1': + resolution: {integrity: sha512-ZILLcKGA7ZBUvinoLKJoI1z/Z7oDhJMpT3dBEZ1UuQKCcobQF8xdU7crG0wNGbkAnnIA+ll3nIOi1CiMrhRGTA==} engines: {node: ^22.18.0 || >=24.12.0} peerDependencies: tailwindcss: ^4.3.5 @@ -1760,7 +1760,7 @@ snapshots: typescript: 6.0.3 vue: 3.5.45(typescript@6.0.3) - '@whatsaaaa/design-system@0.8.0(vue@3.5.45(typescript@6.0.3))': + '@whatsaaaa/design-system@0.8.1(vue@3.5.45(typescript@6.0.3))': dependencies: '@terrazzo/token-types': 2.10.0 optionalDependencies: diff --git a/vue-event-registration/pnpm-workspace.yaml b/vue-event-registration/pnpm-workspace.yaml index 97bcef2..bd64ddf 100644 --- a/vue-event-registration/pnpm-workspace.yaml +++ b/vue-event-registration/pnpm-workspace.yaml @@ -2,4 +2,4 @@ minimumReleaseAgeExclude: - '@whatsaaaa/form-builder-schema@1.0.0-rc.0' - '@whatsaaaa/form-builder-vue@1.0.0-rc.0' - '@whatsaaaa/form-builder-affects@0.2.2-rc.0' - - '@whatsaaaa/design-system@0.8.0' + - '@whatsaaaa/design-system@0.8.1'