create-mercato-app 0.6.5-develop.4863.1.169bfbb3a3 → 0.6.5-develop.4964.1.ae0edca575

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mercato-app",
3
- "version": "0.6.5-develop.4863.1.169bfbb3a3",
3
+ "version": "0.6.5-develop.4964.1.ae0edca575",
4
4
  "type": "module",
5
5
  "description": "Create a new Open Mercato application",
6
6
  "main": "./dist/index.js",
@@ -17,8 +17,12 @@ async function requireCustomerDataTableInjections(page: Parameters<typeof login>
17
17
  }
18
18
 
19
19
  async function runInterceptorProbeFromPage(page: Parameters<typeof login>[0]) {
20
+ await expect(page.getByTestId('umes-extensions-ready')).toHaveAttribute('data-ready', 'true', { timeout: 90_000 })
21
+
20
22
  const trigger = page.getByTestId('phase-e-run-probe')
21
23
  const status = page.getByTestId('phase-e-status')
24
+ await expect(trigger).toBeVisible({ timeout: 30_000 })
25
+ await expect(trigger).toBeEnabled()
22
26
 
23
27
  for (let attempt = 0; attempt < 3; attempt += 1) {
24
28
  await trigger.click()
@@ -115,6 +119,8 @@ test.describe('TC-UMES-004: Phase E-H completion', () => {
115
119
  })
116
120
 
117
121
  test('TC-UMES-I10: extension page probe reports interceptor metadata rows as ok', async ({ page }) => {
122
+ test.setTimeout(120_000)
123
+
118
124
  await login(page, 'admin')
119
125
  await page.goto('/backend/umes-extensions', { waitUntil: 'commit' })
120
126
  await page.waitForLoadState('domcontentloaded')
@@ -86,6 +86,7 @@ function createProbeResult(partial?: Partial<InterceptorProbeResult>): Intercept
86
86
  export default function UmesExtensionsPage() {
87
87
  const t = useT()
88
88
 
89
+ const [pageReady, setPageReady] = React.useState(false)
89
90
  const [interceptorStatus, setInterceptorStatus] = React.useState<PhaseStatus>('idle')
90
91
  const [interceptorPayload, setInterceptorPayload] = React.useState<unknown>(null)
91
92
  const [interceptorError, setInterceptorError] = React.useState<string | null>(null)
@@ -115,6 +116,10 @@ export default function UmesExtensionsPage() {
115
116
  [t],
116
117
  )
117
118
 
119
+ React.useEffect(() => {
120
+ setPageReady(true)
121
+ }, [])
122
+
118
123
  const runInterceptorProbe = React.useCallback(async () => {
119
124
  setInterceptorStatus('pending')
120
125
  setInterceptorError(null)
@@ -233,6 +238,7 @@ export default function UmesExtensionsPage() {
233
238
  return (
234
239
  <Page>
235
240
  <PageBody className="space-y-4">
241
+ <div data-testid="umes-extensions-ready" data-ready={pageReady ? 'true' : 'false'} className="sr-only" aria-hidden="true" />
236
242
  <div>
237
243
  <h1 className="text-xl font-semibold">{t('example.umes.extensions.title', 'UMES Phase E-H Extensions')}</h1>
238
244
  <p className="text-sm text-muted-foreground">