How to operate system native components, such as user authorization and location selection?
System components such as the user authorization dialog do not provide methods for retrieval or operation. Please ensure that the required permissions are manually authorized before executing automated tests.
For native interface components triggered by calling wx object APIs, such as location selection, you can directly use miniProgram.mockWxMethod to specify the return result.
Why does the Node.js script not exit after execution?
Please ensure that you call miniProgram.close or miniProgram.disconnect to disconnect from the DevTools after the test execution is complete.
How to test with multiple accounts logged in on a single machine?
You can achieve this by using the DevTools' multi-account debugging feature in combination with the automated miniProgram.testAccounts.
How to run tests with the same account logged in to DevTools on multiple machines?
You can use the miniProgram.getTicket API to obtain the login ticket of the current DevTools instance. This ticket can then be used to log in to DevTools on other machines. The method of synchronizing the ticket from one machine to another needs to be maintained by the developer.