@@ -63,7 +63,9 @@ test.describe("Widget Lifecycle", () => {
6363 } ,
6464 } ) ;
6565
66- test ( "auto-approves preload and identity" , async ( { page, user, homeserver } , testInfo ) => {
66+ test ( "auto-approves preload and identity" , async ( { page, user, homeserver, toasts } , testInfo ) => {
67+ toasts . rejectToastIfExists ( "Verify this device" ) ;
68+
6769 // A bot creates a room with the widget pinned to the top panel, then invites the test user.
6870 // Because the widget was added by a different user (the bot), Element would normally show a
6971 // preload consent dialog before loading it — this test verifies that dialog is skipped.
@@ -119,7 +121,9 @@ test.describe("Widget Lifecycle", () => {
119121 ) . toBeVisible ( ) ;
120122 } ) ;
121123
122- test ( "prompts for capabilities not in the allowlist" , async ( { page, user, homeserver } , testInfo ) => {
124+ test ( "prompts for capabilities not in the allowlist" , async ( { page, user, homeserver, toasts } , testInfo ) => {
125+ toasts . rejectToastIfExists ( "Verify this device" ) ;
126+
123127 const bot = await homeserver . registerUser ( `bot_${ testInfo . testId } ` , "password" , "Bot" ) ;
124128 const { room_id : roomId } = await homeserver . csApi . request < { room_id : string } > (
125129 "POST" ,
@@ -180,7 +184,10 @@ test.describe("Widget Lifecycle", () => {
180184 page,
181185 user,
182186 homeserver,
187+ toasts,
183188 } , testInfo ) => {
189+ toasts . rejectToastIfExists ( "Verify this device" ) ;
190+
184191 const bot = await homeserver . registerUser ( `bot_${ testInfo . testId } ` , "password" , "Bot" ) ;
185192 const { room_id : roomId } = await homeserver . csApi . request < { room_id : string } > (
186193 "POST" ,
0 commit comments