@@ -186,7 +186,7 @@ test.describe('Room creation', () => {
186
186
187
187
test ( 'it can delete a room' , async ( { page } ) => {
188
188
await login ( page , 'user1' , 'pass' ) ;
189
- let roomsBeforeDeletion = await getRoomsFromSync ( 'user1' , 'pass' ) ;
189
+ let roomsBeforeDeletion = await getRoomsFromSync ( ) ;
190
190
191
191
let room1 = await getRoomName ( page ) ;
192
192
await sendMessage ( page , room1 , 'Room 1' ) ;
@@ -226,12 +226,12 @@ test.describe('Room creation', () => {
226
226
await assertRooms ( page , [ newRoom ] ) ;
227
227
228
228
// For asserting the result of the forget matrix API
229
- let roomsAfterDeletion = await getRoomsFromSync ( 'user1' , 'pass' ) ;
229
+ let roomsAfterDeletion = await getRoomsFromSync ( ) ;
230
230
let roomsAfterDeletionKeys = Object . keys ( roomsAfterDeletion . join ) ;
231
231
let roomsBeforeDeletionKeys = Object . keys ( roomsBeforeDeletion . join ) ;
232
232
expect ( roomsAfterDeletionKeys . length ) . toEqual ( roomsBeforeDeletionKeys . length ) ;
233
233
expect ( roomsAfterDeletionKeys [ 0 ] ) . toEqual ( roomsBeforeDeletionKeys [ 0 ] ) ; // Existing room
234
- expect ( roomsAfterDeletionKeys [ 1 ] ) . not . toEqual ( roomsBeforeDeletion [ 2 ] ) ; // The new room after deletion
234
+ expect ( roomsAfterDeletionKeys [ 1 ] ) . not . toEqual ( roomsBeforeDeletion [ 2 ] ) ; // The new room after deletions
235
235
} ) ;
236
236
237
237
test ( 'it can cancel deleting a room' , async ( { page } ) => {
0 commit comments