@@ -6,7 +6,6 @@ import { assertRelaySeeded } from "../helpers/seed";
66
77const isCi = Boolean ( process . env . CI ) ;
88const relaySeedHookTimeoutMs = isCi ? 90_000 : 30_000 ;
9- const relayDeliveryTimeoutMs = isCi ? 15_000 : 10_000 ;
109
1110async function createStream (
1211 page : import ( "@playwright/test" ) . Page ,
@@ -276,11 +275,7 @@ test("live mentions refetch the home feed without waiting for polling", async ({
276275 message ,
277276 ) ;
278277
279- await expect
280- . poll ( ( ) => getLoggedNotificationCount ( targetPage ) , {
281- timeout : relayDeliveryTimeoutMs ,
282- } )
283- . toBe ( 1 ) ;
278+ await expect . poll ( ( ) => getLoggedNotificationCount ( targetPage ) ) . toBe ( 1 ) ;
284279
285280 const notifications = await getLoggedNotifications ( targetPage ) ;
286281
@@ -300,14 +295,9 @@ test("live mentions refetch the home feed without waiting for polling", async ({
300295 await expect ( targetPage . getByTestId ( "home-inbox-list" ) ) . toBeVisible ( ) ;
301296 await expect ( targetPage . getByTestId ( "home-inbox-list" ) ) . toContainText (
302297 message ,
303- { timeout : relayDeliveryTimeoutMs } ,
304298 ) ;
305299 await expect ( targetPage . getByTestId ( "sidebar-home-count" ) ) . toHaveCount ( 0 ) ;
306- await expect
307- . poll ( ( ) => getLoggedNotificationCount ( targetPage ) , {
308- timeout : relayDeliveryTimeoutMs ,
309- } )
310- . toBe ( 1 ) ;
300+ await expect . poll ( ( ) => getLoggedNotificationCount ( targetPage ) ) . toBe ( 1 ) ;
311301 } finally {
312302 await targetContext . close ( ) ;
313303 await senderContext . close ( ) ;
@@ -345,15 +335,9 @@ test("live forum mentions refetch the home feed without waiting for polling", as
345335 mentionPubkeys : [ TEST_IDENTITIES . tyler . pubkey ] ,
346336 } ) ;
347337
348- await expect ( targetPage . getByTestId ( "sidebar-home-count" ) ) . toHaveText ( "1" , {
349- timeout : relayDeliveryTimeoutMs ,
350- } ) ;
338+ await expect ( targetPage . getByTestId ( "sidebar-home-count" ) ) . toHaveText ( "1" ) ;
351339
352- await expect
353- . poll ( ( ) => getLoggedNotificationCount ( targetPage ) , {
354- timeout : relayDeliveryTimeoutMs ,
355- } )
356- . toBe ( 1 ) ;
340+ await expect . poll ( ( ) => getLoggedNotificationCount ( targetPage ) ) . toBe ( 1 ) ;
357341
358342 const notifications = await getLoggedNotifications ( targetPage ) ;
359343
@@ -371,11 +355,7 @@ test("live forum mentions refetch the home feed without waiting for polling", as
371355 message ,
372356 ) ;
373357 await expect ( targetPage . getByTestId ( "sidebar-home-count" ) ) . toHaveCount ( 0 ) ;
374- await expect
375- . poll ( ( ) => getLoggedNotificationCount ( targetPage ) , {
376- timeout : relayDeliveryTimeoutMs ,
377- } )
378- . toBe ( 1 ) ;
358+ await expect . poll ( ( ) => getLoggedNotificationCount ( targetPage ) ) . toBe ( 1 ) ;
379359 } finally {
380360 await targetContext . close ( ) ;
381361 await senderContext . close ( ) ;
0 commit comments