File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,18 +42,18 @@ describe('Settings: Create and delete users', function() {
4242 cy . visit ( '/settings/users' )
4343
4444 // see that the user is in the list
45- cy . get ( `.user-list-grid .row [data-id ="${ jdoe . userId } "]` ) . within ( ( ) => {
45+ cy . get ( `tbody .user-list__body tr td [data-test ="${ jdoe . userId } "]` ) . parents ( 'tr' ) . within ( ( ) => {
4646 // see that the list of users contains the user jdoe
4747 cy . contains ( jdoe . userId ) . should ( 'exist' )
4848 // open the actions menu for the user
49- cy . get ( '.userActions button.action-item__menutoggle' ) . click ( )
49+ cy . get ( 'td.row__cell--actions button.action-item__menutoggle' ) . click ( )
5050 } )
5151
5252 // The "Delete user" action in the actions menu is shown and clicked
5353 cy . get ( '.action-item__popper .action' ) . contains ( 'Delete user' ) . should ( 'exist' ) . click ( )
5454 // And confirmation dialog accepted
5555 cy . get ( '.oc-dialog button' ) . contains ( `Delete ${ jdoe . userId } ` ) . click ( )
5656 // deleted clicked the user is not shown anymore
57- cy . get ( `.user-list-grid .row [data-id ="${ jdoe . userId } "]` ) . should ( 'not.exist ' )
57+ cy . get ( `tbody .user-list__body tr td [data-test ="${ jdoe . userId } "]` ) . parents ( 'tr' ) . should ( 'not.be.visible ' )
5858 } )
5959} )
You can’t perform that action at this time.
0 commit comments