You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityAPI.spec.ts
+7-22Lines changed: 7 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,10 @@ import {
42
42
}from'../../utils/entity';
43
43
import{test}from'../fixtures/pages';
44
44
45
-
test.describe(
45
+
// Investigation needed:
46
+
// 1. Profile actual event propagation time — measure how long it typically takes from a PATCH/PUT call to the event appearing in /api/v1/activity, then tighten the ceiling.
47
+
// 2. If synchronous flushing is not feasible, restructure tests to assert entity state directly via the entity API, seed a pre-built activity event, and verify only that the UI renders it decoupling UI assertions from event latency.
48
+
test.describe.fixme(
46
49
'Activity API - Entity Changes',
47
50
{tag: [DOMAIN_TAGS.DISCOVERY]},
48
51
()=>{
@@ -76,8 +79,6 @@ test.describe(
76
79
test('creates an activity event when the description is updated',async({
77
80
page,
78
81
})=>{
79
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
80
-
// because activity events are processed asynchronously in the background.
81
82
test.setTimeout(ACTIVITY_TEST_TIMEOUT);
82
83
83
84
constnewDescription=`Test description updated at ${Date.now()}`;
@@ -119,8 +120,6 @@ test.describe(
119
120
});
120
121
121
122
test('creates an activity event when tags are added',async({ page })=>{
122
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
123
-
// because activity events are processed asynchronously in the background.
124
123
test.setTimeout(ACTIVITY_TEST_TIMEOUT);
125
124
126
125
constentityFqn=getTableFqn(entityChangesTable);
@@ -159,8 +158,6 @@ test.describe(
159
158
});
160
159
161
160
test('creates an activity event when owner is added',async({ page })=>{
162
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
163
-
// because activity events are processed asynchronously in the background.
164
161
test.setTimeout(ACTIVITY_TEST_TIMEOUT);
165
162
166
163
constentityFqn=getTableFqn(entityChangesTable);
@@ -198,8 +195,6 @@ test.describe(
198
195
});
199
196
200
197
test('shows the actor who made the activity change',async({ page })=>{
201
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
202
-
// because activity events are processed asynchronously in the background.
203
198
test.setTimeout(ACTIVITY_TEST_TIMEOUT);
204
199
205
200
constentityFqn=getTableFqn(entityChangesTable);
@@ -235,8 +230,6 @@ test.describe(
235
230
});
236
231
237
232
test('links activity items to the correct entity',async({ page })=>{
238
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
239
-
// because activity events are processed asynchronously in the background.
240
233
test.setTimeout(ACTIVITY_TEST_TIMEOUT);
241
234
242
235
constdescription=`Entity link description ${uuid()}`;
@@ -266,7 +259,7 @@ test.describe(
266
259
}
267
260
);
268
261
269
-
test.describe(
262
+
test.describe.fixme(
270
263
'Activity API - Reactions',
271
264
{tag: [DOMAIN_TAGS.DISCOVERY]},
272
265
()=>{
@@ -288,8 +281,6 @@ test.describe(
288
281
});
289
282
290
283
test('adds a reaction to a feed item',async({ page })=>{
291
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
292
-
// because activity events are processed asynchronously in the background.
293
284
test.setTimeout(ACTIVITY_TEST_TIMEOUT);
294
285
295
286
constdescription=`Test activity for adding reaction ${uuid()}`;
@@ -314,8 +305,6 @@ test.describe(
314
305
});
315
306
316
307
test('removes an existing reaction from a feed item',async({ page })=>{
317
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
318
-
// because activity events are processed asynchronously in the background.
319
308
test.setTimeout(ACTIVITY_TEST_TIMEOUT);
320
309
321
310
constdescription=`Test activity for removing reaction ${uuid()}`;
@@ -346,7 +335,7 @@ test.describe(
346
335
}
347
336
);
348
337
349
-
test.describe(
338
+
test.describe.fixme(
350
339
'Activity API - Comments',
351
340
{tag: [DOMAIN_TAGS.DISCOVERY]},
352
341
()=>{
@@ -368,8 +357,6 @@ test.describe(
368
357
});
369
358
370
359
test('adds a comment to a feed item',async({ page })=>{
371
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
372
-
// because activity events are processed asynchronously in the background.
373
360
test.setTimeout(ACTIVITY_TEST_TIMEOUT);
374
361
375
362
constdescription=`Test activity for comments ${uuid()}`;
@@ -394,8 +381,6 @@ test.describe(
394
381
});
395
382
396
383
test('shows the activity detail layout',async({ page })=>{
397
-
// waitForActivityEvent polls the API for up to 5 minutes (ACTIVITY_EVENT_TIMEOUT = 300_000ms)
398
-
// because activity events are processed asynchronously in the background.
0 commit comments