@@ -39,57 +39,54 @@ describe('Settings: App management', { testIsolation: true }, () => {
3939 } )
4040
4141 it ( 'Can enable an installed app' , ( ) => {
42- cy . get ( '#apps-list' ) . should ( 'be.visible ' )
42+ cy . get ( '#apps-list' ) . should ( 'exist ' )
4343 // Wait for the app list to load
4444 . contains ( 'tr' , 'QA testing' , { timeout : 10000 } )
4545 . should ( 'exist' )
46- . find ( '.actions' )
4746 // I enable the "QA testing" app
4847 . contains ( 'button' , 'Enable' )
4948 . click ( { force : true } )
5049
5150 handlePasswordConfirmation ( admin . password )
5251
5352 // Wait until we see the disable button for the app
54- cy . get ( '#apps-list' ) . should ( 'be.visible ' )
53+ cy . get ( '#apps-list' ) . should ( 'exist ' )
5554 . contains ( 'tr' , 'QA testing' )
5655 . should ( 'exist' )
57- . find ( '.actions' )
5856 // I see the disable button for the app
5957 . contains ( 'button' , 'Disable' , { timeout : 10000 } )
6058
6159 // Change to enabled apps view
6260 cy . get ( '#app-category-enabled a' ) . click ( { force : true } )
6361 cy . url ( ) . should ( 'match' , / s e t t i n g s \/ a p p s \/ e n a b l e d $ / )
6462 // I see that the "QA testing" app has been enabled
65- cy . get ( '. apps-list-container ' ) . contains ( 'tr' , 'QA testing' )
63+ cy . get ( '# apps-list' ) . contains ( 'tr' , 'QA testing' )
6664 } )
6765
6866 it ( 'Can disable an installed app' , ( ) => {
69- cy . get ( '#apps-list' ) . should ( 'be.visible' )
67+ cy . get ( '#apps-list' )
68+ . should ( 'exist' )
7069 // Wait for the app list to load
7170 . contains ( 'tr' , 'Update notification' , { timeout : 10000 } )
7271 . should ( 'exist' )
73- . find ( '.actions' )
7472 // I disable the "Update notification" app
7573 . contains ( 'button' , 'Disable' )
7674 . click ( { force : true } )
7775
7876 handlePasswordConfirmation ( admin . password )
7977
8078 // Wait until we see the disable button for the app
81- cy . get ( '#apps-list' ) . should ( 'be.visible ' )
79+ cy . get ( '#apps-list' ) . should ( 'exist ' )
8280 . contains ( 'tr' , 'Update notification' )
8381 . should ( 'exist' )
84- . find ( '.actions' )
8582 // I see the enable button for the app
8683 . contains ( 'button' , 'Enable' , { timeout : 10000 } )
8784
8885 // Change to disabled apps view
8986 cy . get ( '#app-category-disabled a' ) . click ( { force : true } )
9087 cy . url ( ) . should ( 'match' , / s e t t i n g s \/ a p p s \/ d i s a b l e d $ / )
9188 // I see that the "Update notification" app has been disabled
92- cy . get ( '. apps-list-container ' ) . contains ( 'tr' , 'Update notification' )
89+ cy . get ( '# apps-list' ) . contains ( 'tr' , 'Update notification' )
9390 } )
9491
9592 it ( 'Browse enabled apps' , ( ) => {
@@ -102,8 +99,8 @@ describe('Settings: App management', { testIsolation: true }, () => {
10299 cy . get ( '#app-category-enabled' ) . find ( '.active' ) . should ( 'exist' )
103100 // I see that there are only enabled apps
104101 cy . get ( '#apps-list' )
105- . should ( 'be.visible ' )
106- . find ( 'tr .actions ' )
102+ . should ( 'exist ' )
103+ . find ( 'tr button ' )
107104 . each ( ( $action ) => {
108105 cy . wrap ( $action ) . should ( 'not.contain' , 'Enable' )
109106 } )
@@ -119,8 +116,8 @@ describe('Settings: App management', { testIsolation: true }, () => {
119116 cy . get ( '#app-category-disabled' ) . find ( '.active' ) . should ( 'exist' )
120117 // I see that there are only disabled apps
121118 cy . get ( '#apps-list' )
122- . should ( 'be.visible ' )
123- . find ( 'tr .actions ' )
119+ . should ( 'exist ' )
120+ . find ( 'tr button ' )
124121 . each ( ( $action ) => {
125122 cy . wrap ( $action ) . should ( 'not.contain' , 'Disable' )
126123 } )
0 commit comments