Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test: close the surviving reader mutants and fix the login guard
Alfredo Lopez98c67c004d07
diff --git a/packages/grok-provider-attempt-contract/index.test.cjs b/packages/grok-provider-attempt-contract/index.test.cjsindex 7e26f8359..1fb72b738 100644--- a/packages/grok-provider-attempt-contract/index.test.cjs+++ b/packages/grok-provider-attempt-contract/index.test.cjs@@ -1651,7 +1651,15 @@ test('parity: shared container-reader branches return the same exact verdict injpeg([...SOI, 0xff, 0xd7, ...sof(0xc0, 8, 6), ...sos, ...scan, ...EOI]),accepted(validJpeg.length + 2, 8, 6),],+ [+ 'jpeg, SOS marker byte without the 0xFF prefix',+ jpeg([...SOI, ...sof(0xc0, 8, 6), ...sos.slice(1), ...scan, ...EOI]),+ invalid('JPEG marker framing is malformed'),+ ],['jpeg, short segment', jpeg([...SOI, 0xff, 0xe0, 0x00, 0x01, ...EOI]), invalid('JPEG segment is truncated')],+ // The EOI bytes are read as the SOF length (0xFFD9), which runs past the+ // end: the reader must return a verdict, not throw from a bounded read.+ ['jpeg, segment length past the end', jpeg([...SOI, 0xff, 0xc0, ...EOI]), invalid('JPEG segment is truncated')],['jpeg, short frame header',jpeg([...SOI, 0xff, 0xc0, 0x00, 0x04, 0x08, 0x00, ...sos, ...scan, ...EOI]),@@ -1662,6 +1670,11 @@ test('parity: shared container-reader branches return the same exact verdict injpeg([...SOI, ...sof(0xc0, 0, 6), ...sos, ...scan, ...EOI]),invalid('JPEG dimensions must be positive'),],+ [+ 'jpeg, zero height',+ jpeg([...SOI, ...sof(0xc0, 8, 0), ...sos, ...scan, ...EOI]),+ invalid('JPEG dimensions must be positive'),+ ],['jpeg, no frame header', jpeg([...SOI, ...sos, ...scan, ...EOI]), invalid('JPEG has no frame header')],['jpeg, no start of scan',diff --git a/tests/e2e/playwright/control-ui/codex-subscription-admission.spec.ts b/tests/e2e/playwright/control-ui/codex-subscription-admission.spec.tsindex 53a05b350..fd86cb2cd 100644--- a/tests/e2e/playwright/control-ui/codex-subscription-admission.spec.ts+++ b/tests/e2e/playwright/control-ui/codex-subscription-admission.spec.ts@@ -42,7 +42,8 @@ test.describe('Codex subscription admission', () => {const authentication = await authProbeexpect(authentication.status()).toBe(401)await expect(page).toHaveURL(- url => url.pathname === '/login' && url.searchParams.get('next') === guard.next+ // The public root owns sign-in; next retains the protected destination.+ url => url.pathname === '/' && url.searchParams.get('next') === guard.next)await expect(page.getByLabel('Username or email')).toBeVisible()await expect(page.getByRole('button', { name: 'Sign in', exact: true })).toBeVisible()diff --git a/tests/e2e/playwright/package-lock.json b/tests/e2e/playwright/package-lock.jsonindex 026390d15..ebd5d7938 100644--- a/tests/e2e/playwright/package-lock.json+++ b/tests/e2e/playwright/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-playwright-tests",- "version": "0.1.66",+ "version": "0.1.67","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-playwright-tests",- "version": "0.1.66",+ "version": "0.1.67","devDependencies": {"@playwright/test": "^1.50.0","@types/node": "^22.0.0",diff --git a/tests/e2e/playwright/package.json b/tests/e2e/playwright/package.jsonindex 602d5ab60..cbdca9833 100644--- a/tests/e2e/playwright/package.json+++ b/tests/e2e/playwright/package.json@@ -1,6 +1,6 @@{"name": "clerum-playwright-tests",- "version": "0.1.66",+ "version": "0.1.67","private": true,"description": "Playwright E2E tests for Control UI and Desktop App","scripts": {