From 750538bd73cea06d92ab94dd1f809747a746cd20 Mon Sep 17 00:00:00 2001 From: Sylvain Duchesne Date: Mon, 21 Sep 2026 16:47:37 +0200 Subject: [PATCH] Take the sibling branch's answer for the seed step, instead of a rewrite ng-eventually lives with one document per entity already, so it had met this cost and settled it in two lines: await the seed, and give the wait a budget that matches what opening five documents takes. The 10 s was calibrated when seeding meant adding rows to an already-open graph. This replaces a rewrite of the step, begun before looking there, that would have had each scenario create its own event. @data is now 14 passed / 1 failed, the same as main, and the remaining failure is main's too. --- src/modules/event/steps/data/inscription.steps.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/modules/event/steps/data/inscription.steps.ts b/src/modules/event/steps/data/inscription.steps.ts index 571ce31..c6f1338 100644 --- a/src/modules/event/steps/data/inscription.steps.ts +++ b/src/modules/event/steps/data/inscription.steps.ts @@ -8,10 +8,13 @@ import type { FestipodWorld } from '../../../../shared/support/world'; // --- Setup --- Given('un événement {string} existe', async function (this: FestipodWorld, eventTitle: string) { - // Ensure wallet has data (seed if empty) - await this.appFrame!.evaluate(() => { + // Ensure wallet has data (seed if empty). AWAITED, and given a budget that + // matches what seeding costs once every entity is its own document: the seed + // opens five of them, and opening a document takes seconds. The previous 10 s + // was calibrated when seeding meant adding rows to an already-open graph. + await this.appFrame!.evaluate(async () => { const td = (window as any).__testData; - if (td.events.size === 0) td.loadTestData(); + if (td.events.size === 0) await td.loadTestData(); }); // Wait for event to appear await this.appFrame!.waitForFunction( @@ -20,7 +23,7 @@ Given('un événement {string} existe', async function (this: FestipodWorld, eve return [...td.events].some((e: any) => e.title === title); }, eventTitle, - { timeout: 10000 }, + { timeout: 75000 }, ); });