@@ -29,12 +29,16 @@ test.describe("History sharing", function () {
2929 // we then invite Bob, and ensure Bob can see the content.
3030
3131 await aliceElementApp . client . bootstrapCrossSigning ( aliceCredentials ) ;
32+ await aliceElementApp . closeKeyStorageToast ( ) ;
3233
3334 // Register a second user, and open it in a second instance of the app
3435 const bobCredentials = await homeserver . registerUser ( `user_${ testInfo . testId } _bob` , "password" , "Bob" ) ;
3536 const bobPage = await createNewInstance ( browser , bobCredentials , { } , labsFlags ) ;
3637 const bobElementApp = new ElementAppPage ( bobPage ) ;
3738 await bobElementApp . client . bootstrapCrossSigning ( bobCredentials ) ;
39+ await bobElementApp . closeKeyStorageToast ( ) ;
40+
41+ await aliceElementApp . closeNotificationToast ( ) ;
3842
3943 // Create the room and send a message
4044 await createRoom ( alicePage , "TestRoom" , true ) ;
@@ -85,13 +89,15 @@ test.describe("History sharing", function () {
8589 // 5. Charlie can't see the message.
8690
8791 await aliceElementApp . client . bootstrapCrossSigning ( aliceCredentials ) ;
92+ await aliceElementApp . closeKeyStorageToast ( ) ;
8893 await createRoom ( alicePage , "TestRoom" , true ) ;
8994
9095 // Register a second user, and open it in a second instance of the app
9196 const bobCredentials = await homeserver . registerUser ( `user_${ testInfo . testId } _bob` , "password" , "Bob" ) ;
9297 const bobPage = await createNewInstance ( browser , bobCredentials , { } , labsFlags ) ;
9398 const bobElementApp = new ElementAppPage ( bobPage ) ;
9499 await bobElementApp . client . bootstrapCrossSigning ( bobCredentials ) ;
100+ await bobElementApp . closeKeyStorageToast ( ) ;
95101
96102 // ... and a third
97103 const charlieCredentials = await homeserver . registerUser (
@@ -102,6 +108,7 @@ test.describe("History sharing", function () {
102108 const charliePage = await createNewInstance ( browser , charlieCredentials , { } , labsFlags ) ;
103109 const charlieElementApp = new ElementAppPage ( charliePage ) ;
104110 await charlieElementApp . client . bootstrapCrossSigning ( charlieCredentials ) ;
111+ await charlieElementApp . closeKeyStorageToast ( ) ;
105112
106113 // Alice invites Bob, and Bob accepts
107114 const roomId = await aliceElementApp . getCurrentRoomIdFromUrl ( ) ;
0 commit comments