create-mercato-app 0.6.8-develop.7090.1.4dbca7b350 → 0.6.8-develop.7092.1.8bbdd53d2f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agentic/guides/module-facts.json +128 -128
- package/dist/agentic/guides/module-facts.v2.json +128 -128
- package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
- package/dist/agentic/guides/modules/api_docs/index.md +1 -1
- package/dist/agentic/guides/modules/api_keys/index.md +1 -1
- package/dist/agentic/guides/modules/attachments/index.md +1 -1
- package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
- package/dist/agentic/guides/modules/auth/index.md +1 -1
- package/dist/agentic/guides/modules/business_rules/index.md +1 -1
- package/dist/agentic/guides/modules/catalog/index.md +1 -1
- package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
- package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
- package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
- package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
- package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
- package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
- package/dist/agentic/guides/modules/checkout/index.md +1 -1
- package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
- package/dist/agentic/guides/modules/configs/index.md +1 -1
- package/dist/agentic/guides/modules/content/index.md +1 -1
- package/dist/agentic/guides/modules/currencies/index.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
- package/dist/agentic/guides/modules/customers/index.md +1 -1
- package/dist/agentic/guides/modules/dashboards/index.md +1 -1
- package/dist/agentic/guides/modules/data_sync/index.md +1 -1
- package/dist/agentic/guides/modules/design_system/index.md +1 -1
- package/dist/agentic/guides/modules/devices/index.md +1 -1
- package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/index.md +1 -1
- package/dist/agentic/guides/modules/documents/index.md +1 -1
- package/dist/agentic/guides/modules/entities/index.md +1 -1
- package/dist/agentic/guides/modules/eudr/index.md +1 -1
- package/dist/agentic/guides/modules/events/index.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
- package/dist/agentic/guides/modules/generators/index.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
- package/dist/agentic/guides/modules/integrations/index.md +1 -1
- package/dist/agentic/guides/modules/messages/index.md +1 -1
- package/dist/agentic/guides/modules/notifications/index.md +1 -1
- package/dist/agentic/guides/modules/onboarding/index.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
- package/dist/agentic/guides/modules/perspectives/index.md +1 -1
- package/dist/agentic/guides/modules/planner/index.md +1 -1
- package/dist/agentic/guides/modules/portal/index.md +1 -1
- package/dist/agentic/guides/modules/progress/index.md +1 -1
- package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
- package/dist/agentic/guides/modules/query_index/index.md +1 -1
- package/dist/agentic/guides/modules/record_locks/index.md +1 -1
- package/dist/agentic/guides/modules/resources/index.md +1 -1
- package/dist/agentic/guides/modules/sales/index.md +1 -1
- package/dist/agentic/guides/modules/scheduler/index.md +1 -1
- package/dist/agentic/guides/modules/search/index.md +1 -1
- package/dist/agentic/guides/modules/security/index.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
- package/dist/agentic/guides/modules/sso/index.md +1 -1
- package/dist/agentic/guides/modules/staff/index.md +1 -1
- package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
- package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
- package/dist/agentic/guides/modules/translations/index.md +1 -1
- package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
- package/dist/agentic/guides/modules/webhooks/index.md +1 -1
- package/dist/agentic/guides/modules/wms/index.md +1 -1
- package/dist/agentic/guides/modules/workflows/index.md +1 -1
- package/dist/agentic/guides/reference-module-facts.json +1 -1
- package/dist/agentic/guides/upstream/manifest.json +1 -1
- package/package.json +3 -3
- package/template/src/modules/example/__integration__/TC-EXAMPLE-017-bound-extension-ui.spec.ts +31 -19
package/template/src/modules/example/__integration__/TC-EXAMPLE-017-bound-extension-ui.spec.ts
CHANGED
|
@@ -192,6 +192,36 @@ test.describe('TC-EXAMPLE-017: the module\'s bound DataTable and CrudForm hosts,
|
|
|
192
192
|
const logs = collectExampleLifecycleLogs(page)
|
|
193
193
|
let todoId: string | null = null
|
|
194
194
|
|
|
195
|
+
// Interception is installed BEFORE anything this test asserts on, and is never torn
|
|
196
|
+
// down while the page is live. Toggling Playwright's request interception restarts the
|
|
197
|
+
// browser's Fetch domain, and a request issued inside that window is stranded — it is
|
|
198
|
+
// never resumed and no response ever arrives. `CrudForm` fires its post-save
|
|
199
|
+
// `router.push()` microseconds after the create response, so unrouting right after the
|
|
200
|
+
// create (as this test used to) leaves the redirect's RSC fetch hanging and the URL
|
|
201
|
+
// stuck on `/backend/todos/create`. Playwright removes the route at page close, where
|
|
202
|
+
// nothing in flight is asserted on.
|
|
203
|
+
// `holdCreateRequest` keeps the gate armed for exactly one submit — the transform one —
|
|
204
|
+
// so installing the route this early does not change which request is held.
|
|
205
|
+
let holdCreateRequest = false
|
|
206
|
+
let markCreateRequestIntercepted: () => void = () => {}
|
|
207
|
+
let releaseCreateRequest: () => void = () => {}
|
|
208
|
+
const createRequestIntercepted = new Promise<void>((resolve) => {
|
|
209
|
+
markCreateRequestIntercepted = resolve
|
|
210
|
+
})
|
|
211
|
+
const createRequestRelease = new Promise<void>((resolve) => {
|
|
212
|
+
releaseCreateRequest = resolve
|
|
213
|
+
})
|
|
214
|
+
await page.route('**/api/example/todos', async (route) => {
|
|
215
|
+
if (!holdCreateRequest || route.request().method() !== 'POST') {
|
|
216
|
+
await route.continue()
|
|
217
|
+
return
|
|
218
|
+
}
|
|
219
|
+
holdCreateRequest = false
|
|
220
|
+
markCreateRequestIntercepted()
|
|
221
|
+
await createRequestRelease
|
|
222
|
+
await route.continue()
|
|
223
|
+
})
|
|
224
|
+
|
|
195
225
|
try {
|
|
196
226
|
await login(page, 'admin')
|
|
197
227
|
await page.goto('/backend/todos/create', { waitUntil: 'domcontentloaded' })
|
|
@@ -214,24 +244,7 @@ test.describe('TC-EXAMPLE-017: the module\'s bound DataTable and CrudForm hosts,
|
|
|
214
244
|
const rawTitle = `[transform] TC-EXAMPLE-017 ${suffix}`
|
|
215
245
|
const expectedTitle = `TC-EXAMPLE-017 ${suffix} (transformed)`
|
|
216
246
|
await titleInput.fill(rawTitle)
|
|
217
|
-
|
|
218
|
-
let releaseCreateRequest: () => void = () => {}
|
|
219
|
-
const createRequestIntercepted = new Promise<void>((resolve) => {
|
|
220
|
-
markCreateRequestIntercepted = resolve
|
|
221
|
-
})
|
|
222
|
-
const createRequestRelease = new Promise<void>((resolve) => {
|
|
223
|
-
releaseCreateRequest = resolve
|
|
224
|
-
})
|
|
225
|
-
const createRoute = '**/api/example/todos'
|
|
226
|
-
await page.route(createRoute, async (route) => {
|
|
227
|
-
if (route.request().method() !== 'POST') {
|
|
228
|
-
await route.continue()
|
|
229
|
-
return
|
|
230
|
-
}
|
|
231
|
-
markCreateRequestIntercepted()
|
|
232
|
-
await createRequestRelease
|
|
233
|
-
await route.continue()
|
|
234
|
-
})
|
|
247
|
+
holdCreateRequest = true
|
|
235
248
|
const createRequestPromise = page.waitForRequest(
|
|
236
249
|
(candidate) => candidate.url().includes(TODOS_API) && candidate.method() === 'POST',
|
|
237
250
|
)
|
|
@@ -264,7 +277,6 @@ test.describe('TC-EXAMPLE-017: the module\'s bound DataTable and CrudForm hosts,
|
|
|
264
277
|
} finally {
|
|
265
278
|
releaseCreateRequest()
|
|
266
279
|
await submitPromise.catch(() => undefined)
|
|
267
|
-
await page.unroute(createRoute)
|
|
268
280
|
}
|
|
269
281
|
expect(createResponse.ok(), `create failed: ${createResponse.status()}`).toBeTruthy()
|
|
270
282
|
todoId = ((await createResponse.json()) as { id?: string }).id ?? null
|