Skip to content

Commit eb98648

Browse files
committed
fix(e2e): use randomUUID() for event guids in integration tests
1 parent 06eb632 commit eb98648

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

e2e/data-lifecycle.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { randomUUID } from 'crypto'
2021
import { test, expect } from '@playwright/test'
2122
import { getAdminToken } from './helpers/auth'
2223
import {
@@ -127,7 +128,7 @@ test.describe('Data Lifecycle', () => {
127128
const entityGuid = `e2e-hh-${Date.now()}`
128129
await pushEvents(adminToken, TEST_CONFIG_ID, [
129130
{
130-
guid: `evt-${Date.now()}`,
131+
guid: randomUUID(),
131132
entityGuid,
132133
type: 'create-group',
133134
data: { entityName: 'household', name: 'Test Household Alpha' },

e2e/sync-workflow.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { randomUUID } from 'crypto'
2021
import { test, expect } from '@playwright/test'
2122
import { getAdminToken } from './helpers/auth'
2223
import {
@@ -81,7 +82,7 @@ test.describe('Sync Workflow', () => {
8182
const now = new Date().toISOString()
8283
await pushEvents(adminToken, TEST_CONFIG_ID, [
8384
{
84-
guid: `evt-${Date.now()}`,
85+
guid: randomUUID(),
8586
entityGuid,
8687
type: 'create-group',
8788
data: {
@@ -129,7 +130,7 @@ test.describe('Sync Workflow', () => {
129130
const now = new Date().toISOString()
130131
await pushEvents(adminToken, TEST_CONFIG_ID, [
131132
{
132-
guid: `evt-upd-${Date.now()}`,
133+
guid: randomUUID(),
133134
entityGuid,
134135
type: 'update-group',
135136
data: {

0 commit comments

Comments
 (0)