GitToTheHub commented on PR #1680:
URL: https://github.com/apache/cordova-ios/pull/1680#issuecomment-4932651945

   I created a generic solution with the help of ChatGPT. 
   
   I replaced the StatusBar-specific wait with a generic test helper that waits 
for Cordova exec calls to reach native code.
   
   The helper registers a test-only no-op plugin, appends a barrier exec call 
in the same JavaScript evaluation, and waits until that barrier is received 
natively. This avoids relying on evaluateJavaScript completion, which only 
confirms the JS finished running, not that the native plugin command has been 
processed.
   
   I also moved the deviceready expectation before loadStartPage to avoid 
missing the notification if it fires quickly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to