create-mercato-app 0.4.9-develop-e55592929f → 0.4.9-develop-ce96cffe00
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 +1 -1
- package/template/src/modules/example/__integration__/TC-UMES-001.spec.ts +1 -1
- package/template/src/modules/example/__integration__/TC-UMES-002.spec.ts +2 -2
- package/template/src/modules/example/__integration__/TC-UMES-003.spec.ts +17 -17
- package/template/src/modules/example/__integration__/TC-UMES-004.spec.ts +3 -3
- package/template/src/modules/example/__integration__/TC-UMES-005.spec.ts +1 -1
- package/template/src/modules/example/__integration__/TC-UMES-006-mutation-lifecycle.spec.ts +2 -2
- package/template/src/modules/example/__integration__/TC-UMES-006.spec.ts +2 -2
- package/template/src/modules/example/__integration__/TC-UMES-007.spec.ts +1 -1
- package/template/src/modules/example/__integration__/TC-UMES-008.spec.ts +3 -3
- package/template/src/modules/example/__integration__/TC-UMES-009.spec.ts +1 -1
- package/template/src/modules/example/__integration__/TC-UMES-010.spec.ts +1 -1
- package/template/src/modules/example/__integration__/TC-UMES-012.spec.ts +2 -2
- package/template/src/modules/example/__integration__/TC-UMES-020.spec.ts +2 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { expect, test } from '@playwright/test'
|
|
2
|
-
import { login } from '@open-mercato/core/
|
|
2
|
+
import { login } from '@open-mercato/core/helpers/integration/auth'
|
|
3
3
|
|
|
4
4
|
test.describe('TC-UMES-001: Foundation and Menu Injection', () => {
|
|
5
5
|
test.beforeEach(async ({ page }) => {
|
|
@@ -11,11 +11,11 @@ import { test, expect } from '@playwright/test'
|
|
|
11
11
|
import {
|
|
12
12
|
getAuthToken,
|
|
13
13
|
apiRequest,
|
|
14
|
-
} from '@open-mercato/core/
|
|
14
|
+
} from '@open-mercato/core/helpers/integration/api'
|
|
15
15
|
import {
|
|
16
16
|
createPersonFixture,
|
|
17
17
|
deleteEntityIfExists,
|
|
18
|
-
} from '@open-mercato/core/
|
|
18
|
+
} from '@open-mercato/core/helpers/integration/crmFixtures'
|
|
19
19
|
|
|
20
20
|
const BASE_URL = process.env.BASE_URL || 'http://localhost:3000'
|
|
21
21
|
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
import { test, expect } from '@playwright/test'
|
|
10
10
|
import {
|
|
11
11
|
getAuthToken,
|
|
12
|
-
} from '@open-mercato/core/
|
|
12
|
+
} from '@open-mercato/core/helpers/integration/api'
|
|
13
13
|
import {
|
|
14
14
|
createPersonFixture,
|
|
15
15
|
deleteEntityIfExists,
|
|
16
|
-
} from '@open-mercato/core/
|
|
16
|
+
} from '@open-mercato/core/helpers/integration/crmFixtures'
|
|
17
17
|
|
|
18
18
|
const BASE_URL = process.env.BASE_URL || 'http://localhost:3000'
|
|
19
19
|
const OM_EVENT_NAME = 'om:event'
|
|
@@ -91,7 +91,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
91
91
|
page,
|
|
92
92
|
}) => {
|
|
93
93
|
const { login } = await import(
|
|
94
|
-
'@open-mercato/core/
|
|
94
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
95
95
|
)
|
|
96
96
|
await login(page, 'admin')
|
|
97
97
|
await page.goto('/backend')
|
|
@@ -147,7 +147,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
147
147
|
|
|
148
148
|
// Login and navigate to a backend page
|
|
149
149
|
const { login } = await import(
|
|
150
|
-
'@open-mercato/core/
|
|
150
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
151
151
|
)
|
|
152
152
|
await login(page, 'admin')
|
|
153
153
|
await page.goto('/backend')
|
|
@@ -179,7 +179,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
179
179
|
// Test the pattern matching utility in a browser context
|
|
180
180
|
// since it's a client-side module
|
|
181
181
|
const { login } = await import(
|
|
182
|
-
'@open-mercato/core/
|
|
182
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
183
183
|
)
|
|
184
184
|
await login(page, 'admin')
|
|
185
185
|
await page.goto('/backend')
|
|
@@ -231,7 +231,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
231
231
|
page,
|
|
232
232
|
}) => {
|
|
233
233
|
const { login } = await import(
|
|
234
|
-
'@open-mercato/core/
|
|
234
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
235
235
|
)
|
|
236
236
|
await login(page, 'admin')
|
|
237
237
|
await page.goto('/backend/umes-handlers')
|
|
@@ -252,7 +252,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
252
252
|
page,
|
|
253
253
|
}) => {
|
|
254
254
|
const { login } = await import(
|
|
255
|
-
'@open-mercato/core/
|
|
255
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
256
256
|
)
|
|
257
257
|
await login(page, 'admin')
|
|
258
258
|
await page.goto('/backend/umes-handlers')
|
|
@@ -288,7 +288,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
288
288
|
page,
|
|
289
289
|
}) => {
|
|
290
290
|
const { login } = await import(
|
|
291
|
-
'@open-mercato/core/
|
|
291
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
292
292
|
)
|
|
293
293
|
await login(page, 'admin')
|
|
294
294
|
await page.goto('/backend/umes-handlers')
|
|
@@ -321,7 +321,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
321
321
|
page,
|
|
322
322
|
}) => {
|
|
323
323
|
const { login } = await import(
|
|
324
|
-
'@open-mercato/core/
|
|
324
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
325
325
|
)
|
|
326
326
|
await login(page, 'admin')
|
|
327
327
|
await page.goto('/backend/umes-handlers')
|
|
@@ -337,7 +337,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
337
337
|
page,
|
|
338
338
|
}) => {
|
|
339
339
|
const { login } = await import(
|
|
340
|
-
'@open-mercato/core/
|
|
340
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
341
341
|
)
|
|
342
342
|
await login(page, 'admin')
|
|
343
343
|
await page.goto('/backend/umes-handlers')
|
|
@@ -370,7 +370,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
370
370
|
page,
|
|
371
371
|
}) => {
|
|
372
372
|
const { login } = await import(
|
|
373
|
-
'@open-mercato/core/
|
|
373
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
374
374
|
)
|
|
375
375
|
await login(page, 'admin')
|
|
376
376
|
await page.goto('/backend/umes-handlers')
|
|
@@ -389,7 +389,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
389
389
|
page,
|
|
390
390
|
}) => {
|
|
391
391
|
const { login } = await import(
|
|
392
|
-
'@open-mercato/core/
|
|
392
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
393
393
|
)
|
|
394
394
|
await login(page, 'admin')
|
|
395
395
|
await page.goto('/backend/todos/create')
|
|
@@ -557,7 +557,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
557
557
|
|
|
558
558
|
test('TC-UMES-E15: Phase A/B harness shows injected menu items', async ({ page }) => {
|
|
559
559
|
const { login } = await import(
|
|
560
|
-
'@open-mercato/core/
|
|
560
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
561
561
|
)
|
|
562
562
|
await login(page, 'admin')
|
|
563
563
|
await page.goto('/backend/umes-handlers')
|
|
@@ -569,7 +569,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
569
569
|
|
|
570
570
|
test('TC-UMES-E16: Phase A/B harness quick links navigate to target pages', async ({ page }) => {
|
|
571
571
|
const { login } = await import(
|
|
572
|
-
'@open-mercato/core/
|
|
572
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
573
573
|
)
|
|
574
574
|
await login(page, 'admin')
|
|
575
575
|
await page.goto('/backend/umes-handlers')
|
|
@@ -604,7 +604,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
604
604
|
})
|
|
605
605
|
|
|
606
606
|
const { login } = await import(
|
|
607
|
-
'@open-mercato/core/
|
|
607
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
608
608
|
)
|
|
609
609
|
await login(page, 'admin')
|
|
610
610
|
await page.goto('/backend/umes-handlers')
|
|
@@ -628,7 +628,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
628
628
|
page,
|
|
629
629
|
}) => {
|
|
630
630
|
const { login } = await import(
|
|
631
|
-
'@open-mercato/core/
|
|
631
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
632
632
|
)
|
|
633
633
|
await login(page, 'admin')
|
|
634
634
|
await page.goto('/backend/umes-handlers')
|
|
@@ -648,7 +648,7 @@ test.describe('TC-UMES-003: Events & DOM Bridge', () => {
|
|
|
648
648
|
page,
|
|
649
649
|
}) => {
|
|
650
650
|
const { login } = await import(
|
|
651
|
-
'@open-mercato/core/
|
|
651
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
652
652
|
)
|
|
653
653
|
await login(page, 'admin')
|
|
654
654
|
await page.goto('/backend/umes-handlers')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { test, expect } from '@playwright/test'
|
|
2
|
-
import { getAuthToken, apiRequest } from '@open-mercato/core/
|
|
3
|
-
import { login } from '@open-mercato/core/
|
|
4
|
-
import { createPersonFixture, deleteEntityIfExists } from '@open-mercato/core/
|
|
2
|
+
import { getAuthToken, apiRequest } from '@open-mercato/core/helpers/integration/api'
|
|
3
|
+
import { login } from '@open-mercato/core/helpers/integration/auth'
|
|
4
|
+
import { createPersonFixture, deleteEntityIfExists } from '@open-mercato/core/helpers/integration/crmFixtures'
|
|
5
5
|
|
|
6
6
|
type PriorityListResponse = {
|
|
7
7
|
items?: Array<{ id: string; priority?: string }>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* L.4 Integration registry (registerIntegration, title lookup, fallback)
|
|
9
9
|
*/
|
|
10
10
|
import { test, expect } from '@playwright/test'
|
|
11
|
-
import { login } from '@open-mercato/core/
|
|
11
|
+
import { login } from '@open-mercato/core/helpers/integration/auth'
|
|
12
12
|
|
|
13
13
|
const PAGE_URL = '/backend/umes-integrations'
|
|
14
14
|
|
|
@@ -20,11 +20,11 @@ import { test, expect } from '@playwright/test'
|
|
|
20
20
|
import {
|
|
21
21
|
getAuthToken,
|
|
22
22
|
apiRequest,
|
|
23
|
-
} from '@open-mercato/core/
|
|
23
|
+
} from '@open-mercato/core/helpers/integration/api'
|
|
24
24
|
import {
|
|
25
25
|
createCompanyFixture,
|
|
26
26
|
deleteEntityIfExists,
|
|
27
|
-
} from '@open-mercato/core/
|
|
27
|
+
} from '@open-mercato/core/helpers/integration/crmFixtures'
|
|
28
28
|
|
|
29
29
|
async function createTodo(
|
|
30
30
|
request: Parameters<typeof apiRequest>[0],
|
|
@@ -5,7 +5,7 @@ test.describe('TC-UMES-006: transformFormData applyToForm opt-in', () => {
|
|
|
5
5
|
page,
|
|
6
6
|
}) => {
|
|
7
7
|
const { login } = await import(
|
|
8
|
-
'@open-mercato/core/
|
|
8
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
9
9
|
)
|
|
10
10
|
await login(page, 'admin')
|
|
11
11
|
await page.goto('/backend/umes-handlers')
|
|
@@ -31,7 +31,7 @@ test.describe('TC-UMES-006: transformFormData applyToForm opt-in', () => {
|
|
|
31
31
|
page,
|
|
32
32
|
}) => {
|
|
33
33
|
const { login } = await import(
|
|
34
|
-
'@open-mercato/core/
|
|
34
|
+
'@open-mercato/core/helpers/integration/auth'
|
|
35
35
|
)
|
|
36
36
|
await login(page, 'admin')
|
|
37
37
|
await page.goto('/backend/umes-handlers')
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - .ai/qa/scenarios/TC-UMES-ML06-showcase-page-sync-probe.md
|
|
13
13
|
*/
|
|
14
14
|
import { test, expect } from '@playwright/test'
|
|
15
|
-
import { login } from '@open-mercato/core/
|
|
15
|
+
import { login } from '@open-mercato/core/helpers/integration/auth'
|
|
16
16
|
|
|
17
17
|
test.describe('TC-UMES-007: Mutation Lifecycle — Showcase Page', () => {
|
|
18
18
|
test.beforeEach(async ({ page }) => {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* - Reactive notification handlers dispatching without opening notification panel
|
|
7
7
|
*/
|
|
8
8
|
import { test, expect } from '@playwright/test'
|
|
9
|
-
import { login } from '@open-mercato/core/
|
|
10
|
-
import { getAuthToken, apiRequest } from '@open-mercato/core/
|
|
11
|
-
import { createPersonFixture, deleteEntityIfExists } from '@open-mercato/core/
|
|
9
|
+
import { login } from '@open-mercato/core/helpers/integration/auth'
|
|
10
|
+
import { getAuthToken, apiRequest } from '@open-mercato/core/helpers/integration/api'
|
|
11
|
+
import { createPersonFixture, deleteEntityIfExists } from '@open-mercato/core/helpers/integration/crmFixtures'
|
|
12
12
|
|
|
13
13
|
test.describe('TC-UMES-008: SPEC-042 + SPEC-043', () => {
|
|
14
14
|
let adminToken = ''
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test, expect } from '@playwright/test'
|
|
2
|
-
import { login } from '@open-mercato/core/
|
|
2
|
+
import { login } from '@open-mercato/core/helpers/integration/auth'
|
|
3
3
|
|
|
4
4
|
test.describe('TC-UMES-009: Phase J recursive widget extensibility', () => {
|
|
5
5
|
test.beforeEach(async ({ page }) => {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Spec reference: SPEC-041k — DevTools + Conflict Detection (TC-UMES-DT01)
|
|
9
9
|
*/
|
|
10
10
|
import { test, expect } from '@playwright/test'
|
|
11
|
-
import { login } from '@open-mercato/core/
|
|
11
|
+
import { login } from '@open-mercato/core/helpers/integration/auth'
|
|
12
12
|
|
|
13
13
|
test.describe('TC-UMES-010: DevTools panel', () => {
|
|
14
14
|
test.beforeEach(async ({ page }) => {
|
|
@@ -12,12 +12,12 @@ import { test, expect } from '@playwright/test'
|
|
|
12
12
|
import {
|
|
13
13
|
getAuthToken,
|
|
14
14
|
apiRequest,
|
|
15
|
-
} from '@open-mercato/core/
|
|
15
|
+
} from '@open-mercato/core/helpers/integration/api'
|
|
16
16
|
import {
|
|
17
17
|
createPersonFixture,
|
|
18
18
|
deleteEntityIfExists,
|
|
19
19
|
readJsonSafe,
|
|
20
|
-
} from '@open-mercato/core/
|
|
20
|
+
} from '@open-mercato/core/helpers/integration/crmFixtures'
|
|
21
21
|
import {
|
|
22
22
|
buildExtensionHeader,
|
|
23
23
|
parseExtensionHeaders,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect, test } from '@playwright/test'
|
|
2
|
-
import { login } from '@open-mercato/core/
|
|
3
|
-
import { getAuthToken, apiRequest } from '@open-mercato/core/
|
|
2
|
+
import { login } from '@open-mercato/core/helpers/integration/auth'
|
|
3
|
+
import { getAuthToken, apiRequest } from '@open-mercato/core/helpers/integration/api'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* TC-UMES-020: Payment Gateway demo page renders and mock flow works
|