@@ -97,67 +97,66 @@ export class Navbar {
9797 public goToProfileSettings ( ) {
9898 this . signOutDropdown ( ) . click ( ) ;
9999 this . settingsBtn ( ) . should ( 'be.visible' ) . should ( 'be.enabled' ) . click ( ) ;
100- this . waitForSpinnerHide ( ) ;
100+ // Note: Tests should intercept appropriate API calls after navigation
101101 cy . wait ( 500 ) ;
102102 }
103103
104104 public goToApplicationSettings ( ) {
105- this . waitForSpinnerHide ( ) ;
106105 cy . get ( '#application-settings' ) . should ( 'be.visible' ) . then ( isDisplayed => {
107106 if ( ! isDisplayed ) {
108107 this . advancedBtn ( ) ;
109108 }
110109 } ) ;
111110 this . applicationSettingsBtn ( ) . click ( ) ;
112- this . waitForSpinnerHide ( ) ;
111+ // Note: Tests should intercept appropriate API calls after navigation
113112 cy . wait ( 500 ) ;
114113 }
115114
116115 public goToWorkers ( ) {
117116 this . advancedBtn ( ) ;
118117 this . workersBtn ( ) . click ( ) ;
119- this . waitForSpinnerHide ( ) ;
118+ // Note: Tests should intercept appropriate API calls after navigation
120119 cy . wait ( 500 ) ;
121120 }
122121
123122 public goToSites ( ) {
124123 this . advancedBtn ( ) ;
125124 this . sitesBtn ( ) . click ( ) ;
126- this . waitForSpinnerHide ( ) ;
125+ // Note: Tests should intercept appropriate API calls after navigation
127126 cy . wait ( 500 ) ;
128127 }
129128
130129 public goToUserAdministration ( ) {
131130 this . signOutDropdown ( ) . click ( ) ;
132131 this . userAdministrationBtn ( ) . click ( ) ;
133- this . waitForSpinnerHide ( ) ;
132+ // Note: Tests should intercept appropriate API calls after navigation
134133 cy . wait ( 500 ) ;
135134 }
136135
137136 public goToPasswordSettings ( ) {
138137 this . signOutDropdown ( ) . click ( ) ;
139138 this . changePasswordBtn ( ) . click ( ) ;
140- this . waitForSpinnerHide ( ) ;
139+ // Note: Tests should intercept appropriate API calls after navigation
141140 cy . wait ( 500 ) ;
142141 }
143142
144143 public goToDeviceUsersPage ( ) {
145144 this . deviceUsersBtn ( ) . click ( ) ;
146- this . waitForSpinnerHide ( ) ;
145+ // Note: Tests should intercept appropriate API calls after navigation
147146 cy . wait ( 500 ) ;
148147 }
149148
150149 public goToEntitySelect ( ) {
151150 this . advancedBtn ( ) ;
152151 this . entitySelectBtn ( ) . click ( ) ;
153- this . waitForSpinnerHide ( ) ;
152+ // Note: Tests should intercept appropriate API calls after navigation
154153 cy . wait ( 500 ) ;
155154 }
156155
157156 public goToEntitySearch ( ) {
158157 this . advancedBtn ( ) ;
159158 this . entitySearchBtn ( ) . click ( ) ;
160- this . waitForSpinnerHide ( ) ;
159+ // Note: Tests should intercept appropriate API calls after navigation
161160 cy . wait ( 500 ) ;
162161 }
163162
@@ -192,30 +191,27 @@ export class Navbar {
192191 public goToMenuEditorPage ( ) {
193192 this . signOutDropdown ( ) . click ( ) ;
194193 this . menuEditorBtn ( ) . click ( ) ;
195- this . waitForSpinnerHide ( ) ;
194+ // Note: Tests should intercept GET /api/navigation-menu after navigation
196195 }
197196
198197 public goToMyEForms ( ) {
199198 this . myEformsBtn ( ) . click ( ) ;
200- this . waitForSpinnerHide ( ) ;
199+ // Note: Tests should intercept appropriate API calls after navigation
201200 }
202201
203202 public goToSecurity ( ) {
204203 this . signOutDropdown ( ) . click ( ) ;
205204 this . securityBtn ( ) . click ( ) ;
206- this . waitForSpinnerHide ( ) ;
205+ // Note: Tests should intercept appropriate API calls after navigation
207206 }
208207
209208 spinnerAnimation ( ) {
210209 return cy . get ( '#spinner-animation' ) ;
211210 }
212211
212+ // DEPRECATED: Use API intercepts in tests instead
213213 public waitForSpinnerHide ( ) {
214- if ( this . spinnerAnimation ( ) . should ( 'exist' ) )
215- {
216- this . spinnerAnimation ( ) . should ( 'not.exist' ) ;
217- return ;
218- }
219- this . spinnerAnimation ( ) . should ( 'not.exist' ) ;
214+ cy . log ( 'WARNING: waitForSpinnerHide is deprecated - use API intercepts instead' ) ;
215+ // No longer waits for spinner - tests should use cy.intercept() and cy.wait() for specific API calls
220216 }
221217}
0 commit comments