@@ -163,6 +163,7 @@ describe('Settings: Delete an empty group', { testIsolation: false }, () => {
163163 // see that the list of groups does not contain the group
164164 cy . get ( 'ul[data-cy-users-settings-navigation-groups="custom"]' )
165165 . find ( 'li' )
166+ . not ( '.app-navigation-caption' )
166167 . should ( 'not.exist' )
167168 // and also not in database
168169 cy . runOccCommand ( 'group:list --output=json' ) . then ( ( $response ) => {
@@ -219,6 +220,7 @@ describe('Settings: Delete a non empty group', () => {
219220 // see that the list of groups does not contain the group foo
220221 cy . get ( 'ul[data-cy-users-settings-navigation-groups="custom"]' )
221222 . find ( 'li' )
223+ . not ( '.app-navigation-caption' )
222224 . should ( 'not.exist' )
223225 // and also not in database
224226 cy . runOccCommand ( 'group:list --output=json' ) . then ( ( $response ) => {
@@ -260,16 +262,16 @@ describe('Settings: Sort groups in the UI', () => {
260262
261263 it ( 'See that the groups are sorted by the member count' , ( ) => {
262264 cy . get ( 'ul[data-cy-users-settings-navigation-groups="custom"]' ) . within ( ( ) => {
263- cy . get ( 'li' ) . eq ( 0 ) . should ( 'contain' , 'B' ) // 1 member
264- cy . get ( 'li' ) . eq ( 1 ) . should ( 'contain' , 'A' ) // 0 members
265+ cy . get ( 'li' ) . not ( '.app-navigation-caption' ) . eq ( 0 ) . should ( 'contain' , 'B' ) // 1 member
266+ cy . get ( 'li' ) . not ( '.app-navigation-caption' ) . eq ( 1 ) . should ( 'contain' , 'A' ) // 0 members
265267 } )
266268 } )
267269
268270 it ( 'See that the order is preserved after a reload' , ( ) => {
269271 cy . reload ( )
270272 cy . get ( 'ul[data-cy-users-settings-navigation-groups="custom"]' ) . within ( ( ) => {
271- cy . get ( 'li' ) . eq ( 0 ) . should ( 'contain' , 'B' ) // 1 member
272- cy . get ( 'li' ) . eq ( 1 ) . should ( 'contain' , 'A' ) // 0 members
273+ cy . get ( 'li' ) . not ( '.app-navigation-caption' ) . eq ( 0 ) . should ( 'contain' , 'B' ) // 1 member
274+ cy . get ( 'li' ) . not ( '.app-navigation-caption' ) . eq ( 1 ) . should ( 'contain' , 'A' ) // 0 members
273275 } )
274276 } )
275277
@@ -288,16 +290,16 @@ describe('Settings: Sort groups in the UI', () => {
288290
289291 it ( 'See that the groups are sorted by the user count' , ( ) => {
290292 cy . get ( 'ul[data-cy-users-settings-navigation-groups="custom"]' ) . within ( ( ) => {
291- cy . get ( 'li' ) . eq ( 0 ) . should ( 'contain' , 'A' )
292- cy . get ( 'li' ) . eq ( 1 ) . should ( 'contain' , 'B' )
293+ cy . get ( 'li' ) . not ( '.app-navigation-caption' ) . eq ( 0 ) . should ( 'contain' , 'A' )
294+ cy . get ( 'li' ) . not ( '.app-navigation-caption' ) . eq ( 1 ) . should ( 'contain' , 'B' )
293295 } )
294296 } )
295297
296298 it ( 'See that the order is preserved after a reload' , ( ) => {
297299 cy . reload ( )
298300 cy . get ( 'ul[data-cy-users-settings-navigation-groups="custom"]' ) . within ( ( ) => {
299- cy . get ( 'li' ) . eq ( 0 ) . should ( 'contain' , 'A' )
300- cy . get ( 'li' ) . eq ( 1 ) . should ( 'contain' , 'B' )
301+ cy . get ( 'li' ) . not ( '.app-navigation-caption' ) . eq ( 0 ) . should ( 'contain' , 'A' )
302+ cy . get ( 'li' ) . not ( '.app-navigation-caption' ) . eq ( 1 ) . should ( 'contain' , 'B' )
301303 } )
302304 } )
303305} )
0 commit comments