@@ -38,7 +38,7 @@ describe('Settings: Show and hide columns', function() {
3838 // reset all visibility toggles
3939 cy . get ( '.modal-container #settings-section_visibility-settings input[type="checkbox"]' ) . uncheck ( { force : true } )
4040
41- cy . get ( '.modal-container' ) . within ( ( ) => {
41+ cy . contains ( '.modal-container' , 'User management settings ') . within ( ( ) => {
4242 // enable the last login toggle
4343 cy . get ( '[data-test="showLastLogin"] input[type="checkbox"]' ) . check ( { force : true } )
4444 // close the settings dialog
@@ -59,7 +59,7 @@ describe('Settings: Show and hide columns', function() {
5959 // open the settings dialog
6060 cy . get ( '.app-navigation-entry__settings' ) . contains ( 'User management settings' ) . click ( )
6161
62- cy . get ( '.modal-container' ) . within ( ( ) => {
62+ cy . contains ( '.modal-container' , 'User management settings ') . within ( ( ) => {
6363 // enable the language toggle
6464 cy . get ( '[data-test="showLanguages"] input[type="checkbox"]' ) . should ( 'not.be.checked' )
6565 cy . get ( '[data-test="showLanguages"] input[type="checkbox"]' ) . check ( { force : true } )
@@ -90,15 +90,15 @@ describe('Settings: Show and hide columns', function() {
9090 // open the settings dialog
9191 cy . get ( '.app-navigation-entry__settings' ) . contains ( 'User management settings' ) . click ( )
9292
93- cy . get ( '.modal-container' ) . within ( ( ) => {
93+ cy . contains ( '.modal-container' , 'User management settings ') . within ( ( ) => {
9494 // disable the last login toggle
9595 cy . get ( '[data-test="showLastLogin"] input[type="checkbox"]' ) . should ( 'be.checked' )
9696 cy . get ( '[data-test="showLastLogin"] input[type="checkbox"]' ) . uncheck ( { force : true } )
9797 cy . get ( '[data-test="showLastLogin"] input[type="checkbox"]' ) . should ( 'not.be.checked' )
9898 // close the settings dialog
9999 cy . get ( 'button.modal-container__close' ) . click ( )
100100 } )
101- cy . waitUntil ( ( ) => cy . get ( '.modal-container' ) . should ( el => assertNotExistOrNotVisible ( el ) ) )
101+ cy . waitUntil ( ( ) => cy . contains ( '.modal-container' , 'User management settings ') . should ( el => assertNotExistOrNotVisible ( el ) ) )
102102
103103 // see that the last login column is not in the header
104104 cy . get ( '[data-cy-user-list-header-last-login]' ) . should ( 'not.exist' )
0 commit comments