Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(e2e): r4-m7 require explicit recovery takeover evidence
Josuéf564506023c2
diff --git a/control-ui/e2e/gfs-upload-v2.spec.ts b/control-ui/e2e/gfs-upload-v2.spec.tsindex a72d6646a..0b8c72b46 100644--- a/control-ui/e2e/gfs-upload-v2.spec.ts+++ b/control-ui/e2e/gfs-upload-v2.spec.ts@@ -15,9 +15,10 @@ import {removeDiskUploadFixture,} from '../../tests/e2e/gfsUploadV2Fixtures'import {- readGfsUploadProductMaxBytes,+ beginGfsUploadProductMaxMutation,readGfsUploadV2Enabled,restartGfsWriter,+ restoreGfsUploadProductMaxBytes,setGfsUploadProductMaxBytes,setGfsUploadV2Enabled,} from '../../tests/e2e/gfsUploadV2Runtime'@@ -400,7 +401,7 @@ test.describe('GFS Upload v2 — Control UI runtime product policy', () => {test.setTimeout(75 * 60_000)test('uses 100 MiB then 300 MiB without rebuilding the deployed UI bundle', async ({ page }) => {- const previous = await readGfsUploadProductMaxBytes()+ const mutation = await beginGfsUploadProductMaxMutation()const lowerMax = 100 * 1024 * 1024const raisedMax = 300 * 1024 * 1024const rejectedFixtureName = uniqueGfsFixtureName('e2e-gfs-v2-runtime-cap-ui')@@ -415,7 +416,7 @@ test.describe('GFS Upload v2 — Control UI runtime product policy', () => {lowerMax)cleanupSource = rejectedSource- await setGfsUploadProductMaxBytes(lowerMax)+ await setGfsUploadProductMaxBytes(mutation, lowerMax)await exerciseCreate(page, lowerMax)await openWritableFolder(page, rejectedFixture.name)@@ -434,11 +435,11 @@ test.describe('GFS Upload v2 — Control UI runtime product policy', () => {).toBeNull()await page.reload()- await setGfsUploadProductMaxBytes(raisedMax)+ await setGfsUploadProductMaxBytes(mutation, raisedMax)await exerciseCreate(page, 250 * 1024 * 1024)} finally {try {- await setGfsUploadProductMaxBytes(previous)+ await restoreGfsUploadProductMaxBytes(mutation)} finally {if (cleanupSource) await removeDiskUploadFixture(cleanupSource)if (cleanupFixture) {diff --git a/desktop-app/test/e2e-playwright/gfs-upload-v2.test.ts b/desktop-app/test/e2e-playwright/gfs-upload-v2.test.tsindex 039a39fc1..77960d7e6 100644--- a/desktop-app/test/e2e-playwright/gfs-upload-v2.test.ts+++ b/desktop-app/test/e2e-playwright/gfs-upload-v2.test.ts@@ -18,10 +18,11 @@ import {removeDiskUploadFixture,} from '../../../tests/e2e/gfsUploadV2Fixtures'import {+ beginGfsUploadProductMaxMutation,countGfsCreateSessions,- readGfsUploadProductMaxBytes,readGfsUploadV2Enabled,restartGfsWriter,+ restoreGfsUploadProductMaxBytes,revokeGfsUserWriteGrant,setGfsUploadProductMaxBytes,setGfsUploadV2Enabled,@@ -446,7 +447,7 @@ test.describe('GFS Upload v2 — packaged Desktop runtime product policy', () =>test.setTimeout(75 * 60_000)test('uses 100 MiB then 300 MiB without rebuilding the packaged Desktop', async ({ appPage }) => {- const previous = await readGfsUploadProductMaxBytes()+ const mutation = await beginGfsUploadProductMaxMutation()const lowerMax = 100 * 1024 * 1024const raisedMax = 300 * 1024 * 1024const fixtureName = uniqueGfsFixtureName('e2e-gfs-v2-runtime-cap-desktop')@@ -469,7 +470,7 @@ test.describe('GFS Upload v2 — packaged Desktop runtime product policy', () =>lowerMax)cleanupSource = rejectedSource- await setGfsUploadProductMaxBytes(lowerMax)+ await setGfsUploadProductMaxBytes(mutation, lowerMax)await exerciseCreate(appPage, lowerMax)const { browser, manageDialog } = await openFolder(appPage, fixture.name)@@ -489,11 +490,11 @@ test.describe('GFS Upload v2 — packaged Desktop runtime product policy', () =>).toHaveCount(0)await appPage.reload()- await setGfsUploadProductMaxBytes(raisedMax)+ await setGfsUploadProductMaxBytes(mutation, raisedMax)await exerciseCreate(appPage, 250 * 1024 * 1024)} finally {try {- await setGfsUploadProductMaxBytes(previous)+ await restoreGfsUploadProductMaxBytes(mutation)} finally {if (cleanupSource) await removeDiskUploadFixture(cleanupSource)if (cleanupFixture) {